Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Unified Diff: tools/perf-to-html.py

Issue 1941573002: [tools] Handle benchmark runs reporting more than one result. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf-to-html.py
diff --git a/tools/perf-to-html.py b/tools/perf-to-html.py
index 63faeb1d6602e232cd626f1aa678ec53a94b93e7..7ec9c50f218fe123b37fd254c96731c23bdd5483 100755
--- a/tools/perf-to-html.py
+++ b/tools/perf-to-html.py
@@ -115,8 +115,8 @@ class Benchmark:
self.name_ = name
self.tests_ = {}
for test in data:
- # strip off "<name>/" prefix
- test_name = test.split("/")[1]
+ # strip off "<name>/" prefix, allowing for subsequent "/"s
+ test_name = test.split("/", 1)[1]
self.appendResult(test_name, data[test])
# tests is a dictionary of Results
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698