From: Francis Deslauriers Date: Fri, 20 Jan 2017 16:17:20 +0000 (-0500) Subject: Lava: Display benchmark results in nsec X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=c5545ca02fb63a21156a4a0ac22f58c067a43f12;p=lttng-ci.git Lava: Display benchmark results in nsec Signed-off-by: Francis Deslauriers --- diff --git a/scripts/lttng-baremetal-tests/generate-plots.py b/scripts/lttng-baremetal-tests/generate-plots.py index 1db638a..87ce64c 100644 --- a/scripts/lttng-baremetal-tests/generate-plots.py +++ b/scripts/lttng-baremetal-tests/generate-plots.py @@ -41,6 +41,11 @@ def rename_cols(df): df.rename(columns=new_cols, inplace=True) return df +def convert_us_to_ns(df): + cols = [col for col in df.columns if 'periter' in col] + df[cols] = df[cols].apply(lambda x: x*1000) + return df + def create_plot(df, graph_type): # We split the data into two plots so it's easier to read lower = ['basel_1thr', 'basel_2thr', 'basel_4thr', 'lttng_1thr', 'lttng_2thr', 'lttng_4thr'] @@ -48,7 +53,6 @@ def create_plot(df, graph_type): upper = ['basel_8thr', 'basel_16thr', 'lttng_8thr', 'lttng_16thr'] upper_color = ['deepskyblue', 'orange', 'mediumblue', 'saddlebrown'] - title='Meantime per syscalls for {} testcase'.format(graph_type) # Create a plot with 2 sub-plots @@ -106,6 +110,7 @@ def create_plots(res_dir): list_.append(tmp) df = pd.concat(list_) + df = convert_us_to_ns(df) df = rename_cols(df) df.sort_index(inplace=True)