diff options
author | Ry Dahl <ry@tinyclouds.org> | 2020-01-20 09:49:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-20 09:49:18 -0500 |
commit | e83658138bff3605bd37c2b4ae4703081d884729 (patch) | |
tree | 323258ba0d66175bc55950e0e8c79d814f81c6c6 /tools/benchmark.py | |
parent | 7f80f9db3f4c3b064b230adfec7ff958fc195da6 (diff) |
Fix bug in strace parser (#3720)
Co-authored-by: @kt3k
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-x | tools/benchmark.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py index 507e7cc6d..2a1310a39 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -89,6 +89,10 @@ def strace_parse(summary_text): summary = {} # clear empty lines lines = list(filter(lambda x: x and x != "\n", summary_text.split("\n"))) + # Filter out non-relevant lines. See the error log at + # https://github.com/denoland/deno/pull/3715/checks?check_run_id=397365887 + # This is checked in tools/testdata/strace_summary2.out + lines = [x for x in lines if x.find("detached ...") == -1] if len(lines) < 4: return {} # malformed summary lines, total_line = lines[2:-2], lines[-1] |