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

Unified Diff: tools/perf/benchmarks/blink_perf.py

Issue 2912253002: Explicitly setting story names for the blink story sets. (Closed)
Patch Set: Explicitly setting story names for the blink story sets. Created 3 years, 7 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/benchmarks/blink_perf.py
diff --git a/tools/perf/benchmarks/blink_perf.py b/tools/perf/benchmarks/blink_perf.py
index d92b240b34304edbcf3b7296f7000ba0978ec11c..310a84193a10ed81f160c5f985e3e80fe9728d22 100644
--- a/tools/perf/benchmarks/blink_perf.py
+++ b/tools/perf/benchmarks/blink_perf.py
@@ -67,11 +67,17 @@ def CreateStorySetFromPath(path, skipped_file,
else:
_AddPage(path)
ps = story.StorySet(base_dir=os.getcwd() + os.sep,
- serving_dirs=serving_dirs)
+ serving_dirs=serving_dirs,
+ verify_names=True)
+
+ all_urls = [p.rstrip('/') for p in page_urls]
+ common_prefix = os.path.dirname(os.path.commonprefix(all_urls))
for url in page_urls:
+ name = url[len(common_prefix):].strip('/')
ps.AddStory(page_module.Page(
url, ps, ps.base_dir,
- shared_page_state_class=shared_page_state_class))
+ shared_page_state_class=shared_page_state_class,
+ name=name))
return ps
« 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