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

Unified Diff: tools/perf/page_sets/system_health/long_running_stories.py

Issue 2888133002: Modify list_system_health_stories to generate_system_health_csv (Closed)
Patch Set: Address Juan's nits 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
Index: tools/perf/page_sets/system_health/long_running_stories.py
diff --git a/tools/perf/page_sets/system_health/long_running_stories.py b/tools/perf/page_sets/system_health/long_running_stories.py
index a32ea451042d077a37e124b23dc57a1a60f27e13..c4fba0a9f19b6dba18c39f0e361aa40156f43f2b 100644
--- a/tools/perf/page_sets/system_health/long_running_stories.py
+++ b/tools/perf/page_sets/system_health/long_running_stories.py
@@ -30,6 +30,15 @@ class _LongRunningStory(system_health_story.SystemHealthStory):
if self._take_memory_measurement:
action_runner.MeasureMemory()
+ @classmethod
+ def GenerateStoryDescription(cls):
+ if cls.BACKGROUND:
+ return ('Load %s then open a new blank tab and let the loaded page stay '
+ 'in background for %s seconds.' % (cls.URL, IDLE_TIME_IN_SECONDS))
+ else:
+ return ('Load %s then let it stay in foreground for %s seconds.' %
+ (cls.URL, IDLE_TIME_IN_SECONDS))
+
##############################################################################
# Long running Gmail stories.
« no previous file with comments | « tools/perf/page_sets/system_health/loading_stories.py ('k') | tools/perf/page_sets/system_health/media_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698