profile plots: ignore missing svg files
This commit is contained in:
parent
a36e00bdc5
commit
68435037e7
1 changed files with 5 additions and 1 deletions
4
plots.py
4
plots.py
|
|
@ -182,7 +182,11 @@ def make_profile_plot(logs, exp, criterion, side, record, no_flamegraph=False, m
|
|||
svg_filename = log["prof"] + ".svg"
|
||||
if not no_flamegraph:
|
||||
os.system("flamegraph --perfdata {} -o {}".format(log["prof"], svg_filename))
|
||||
try:
|
||||
profile_results = profile.extract_from_file(svg_filename)
|
||||
except FileNotFoundError:
|
||||
print(f"Cannot read {svg_filename}")
|
||||
return
|
||||
print(profile_results)
|
||||
for function in profile_results:
|
||||
if function not in functions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue