aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_plots.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-02-10 17:23:58 +0100
committerTibor Frank <tifrank@cisco.com>2020-02-10 16:26:56 +0000
commitd7ef5191ec1a7561d6109723980d48b85953a9c7 (patch)
tree1ea7a5768319a0c9e91a33188f796ed82d91e084 /resources/tools/presentation/generator_plots.py
parent256743b509bec8dec3075d91e384b3e6bb01cf77 (diff)
Report: Latency only 1C and prim NIC
Change-Id: Ibb9f6ed27047ac2beca25d9462dc321cf73f7546 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_plots.py')
-rw-r--r--resources/tools/presentation/generator_plots.py28
1 files changed, 15 insertions, 13 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 08cf1a9c30..51f3097f56 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -40,7 +40,7 @@ COLORS = [u"SkyBlue", u"Olive", u"Purple", u"Coral", u"Indigo", u"Pink",
u"LightGreen", u"LightSeaGreen", u"LightSkyBlue", u"Maroon",
u"MediumSeaGreen", u"SeaGreen", u"LightSlateGrey"]
-REGEX_NIC = re.compile(r'(\d*ge\dp\d\D*\d*)-')
+REGEX_NIC = re.compile(r'(\d*ge\dp\d\D*\d*[a-z]*)-')
def generate_plots(spec, data):
@@ -204,6 +204,8 @@ def plot_hdrh_lat_by_percentile(plot, input_data):
plot,
params=[u"latency", u"throughput", u"parent", u"tags", u"type"]
)[0][0]
+ elif plot.get(u"filter", None):
+ data = input_data.filter_data(plot, continue_on_error=True)
else:
job = list(plot[u"data"].keys())[0]
build = str(plot[u"data"][job][0])
@@ -213,6 +215,18 @@ def plot_hdrh_lat_by_percentile(plot, input_data):
logging.error(u"No data.")
return
+ desc = {
+ u"LAT0": u"No-load.",
+ u"PDR10": u"Low-load, 10% PDR.",
+ u"PDR50": u"Mid-load, 50% PDR.",
+ u"PDR90": u"High-load, 90% PDR.",
+ u"PDR": u"Full-load, 100% PDR.",
+ u"NDR10": u"Low-load, 10% NDR.",
+ u"NDR50": u"Mid-load, 50% NDR.",
+ u"NDR90": u"High-load, 90% NDR.",
+ u"NDR": u"Full-load, 100% NDR."
+ }
+
graphs = [
u"LAT0",
u"PDR10",
@@ -238,18 +252,6 @@ def plot_hdrh_lat_by_percentile(plot, input_data):
logging.info(f" Generating the graph: {name_link}")
- desc = {
- u"LAT0": u"No-load.",
- u"PDR10": u"Low-load, 10% PDR.",
- u"PDR50": u"Mid-load, 50% PDR.",
- u"PDR90": u"High-load, 90% PDR.",
- u"PDR": u"Full-load, 100% PDR.",
- u"NDR10": u"Low-load, 10% NDR.",
- u"NDR50": u"Mid-load, 50% NDR.",
- u"NDR90": u"High-load, 90% NDR.",
- u"NDR": u"Full-load, 100% NDR."
- }
-
fig = plgo.Figure()
layout = deepcopy(plot[u"layout"])