diff --git a/plots.py b/plots.py index b984231..4d7f39b 100644 --- a/plots.py +++ b/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)) - profile_results = profile.extract_from_file(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: