projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jjb: Set the X axis to a finer granularity for benchmark plots
[lttng-ci.git]
/
scripts
/
lttng-baremetal-tests
/
generate-plots.py
diff --git
a/scripts/lttng-baremetal-tests/generate-plots.py
b/scripts/lttng-baremetal-tests/generate-plots.py
index 30005cc8b56507585ddc8edcbfaa91f69a5ebf07..89f6084ec072889e15cc70fb4e13d036680f1565 100644
(file)
--- a/
scripts/lttng-baremetal-tests/generate-plots.py
+++ b/
scripts/lttng-baremetal-tests/generate-plots.py
@@
-101,14
+101,14
@@
def create_plot(df, graph_type):
# Plot each line and its errorbars
for (data, stdev) in zip(data_cols, stdev_cols):
# Plot each line and its errorbars
for (data, stdev) in zip(data_cols, stdev_cols):
- ax.errorbar(x=df.index.values, y=df[data]
, yerr=df[stdev]
, marker='o')
+ ax.errorbar(x=df.index.values, y=df[data]
.values, yerr=df[stdev].values
, marker='o')
ax.set_ylim(0)
ax.grid()
ax.set_xlabel('Jenkins Build ID')
ax.set_ylabel('Meantime per syscall [us]')
ax.set_ylim(0)
ax.grid()
ax.set_xlabel('Jenkins Build ID')
ax.set_ylabel('Meantime per syscall [us]')
- ax.xaxis.set_major_locator(MaxNLocator(integer=True))
+ ax.xaxis.set_major_locator(MaxNLocator(integer=True
, nbins=30
))
ax.legend(prop={'family': 'monospace'},
labels=curr_df.columns.values, bbox_to_anchor=(1.2,1))
ax.legend(prop={'family': 'monospace'},
labels=curr_df.columns.values, bbox_to_anchor=(1.2,1))
@@
-123,7
+123,11
@@
def create_metadata_file(res_dir):
for dirname, dirnames, res_files in os.walk('./'+res_dir):
if len(dirnames) > 0:
continue
for dirname, dirnames, res_files in os.walk('./'+res_dir):
if len(dirnames) > 0:
continue
- metadata = pd.read_csv(os.path.join(dirname, 'metadata.csv'))
+ try:
+ metadata = pd.read_csv(os.path.join(dirname, 'metadata.csv'))
+ except Exception:
+ print('Omitting run {} because metadata.csv is missing'.format(dirname))
+ continue
list_.append(metadata)
df = pd.concat(list_)
list_.append(metadata)
df = pd.concat(list_)
@@
-140,7
+144,11
@@
def create_plots(res_dir):
for dirname, dirnames, res_files in os.walk('./'+res_dir):
if len(dirnames) > 0:
continue
for dirname, dirnames, res_files in os.walk('./'+res_dir):
if len(dirnames) > 0:
continue
- metadata = pd.read_csv(os.path.join(dirname, 'metadata.csv'))
+ try:
+ metadata = pd.read_csv(os.path.join(dirname, 'metadata.csv'))
+ except Exception:
+ print('Omitting run {} because metadata.csv is missing'.format(dirname))
+ continue
for res in res_files:
if res in 'metadata.csv':
for res in res_files:
if res in 'metadata.csv':
This page took
0.023366 seconds
and
4
git commands to generate.