Lava: Display benchmark results in nsec
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 20 Jan 2017 16:17:20 +0000 (11:17 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 25 Jan 2017 19:42:42 +0000 (14:42 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/lttng-baremetal-tests/generate-plots.py

index 1db638a9216fc6d00b88269d3926b535fdf0ea68..87ce64cb03cbdad7ca9160bdaf90feb18276444b 100644 (file)
@@ -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)
 
This page took 0.023399 seconds and 4 git commands to generate.