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

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

Issue 1056623002: Telemetry: Add simple startup benchmark that uses a large profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check that the possible browser is local before downloading profiles. Created 5 years, 9 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 | tools/perf/generated_profiles/darwin/large_profile.zip.sha1 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/startup.py
diff --git a/tools/perf/benchmarks/startup.py b/tools/perf/benchmarks/startup.py
index d69a45f44823feea7ce75651ff3efdcb0be6456e..b32b0b427c4500299ef653d3a40124abfe6be96f 100644
--- a/tools/perf/benchmarks/startup.py
+++ b/tools/perf/benchmarks/startup.py
@@ -57,3 +57,33 @@ class StartupWarmBlankPage(_StartupWarm):
@classmethod
def Name(cls):
return 'startup.warm.blank_page'
+
+@benchmark.Enabled('has tabs')
+@benchmark.Enabled('win', 'linux', 'mac')
+class StartupLargeProfileColdBlankPage(_StartupCold):
+ """Measures cold startup time with a large profile."""
+ tag = 'cold'
+ page_set = page_sets.BlankPageSet
+
+ def __init__(self, max_failures=None):
+ super(StartupLargeProfileColdBlankPage, self).__init__(max_failures)
+ self.generated_profile_archive = "large_profile.zip"
+
+ @classmethod
+ def Name(cls):
+ return 'startup.large_profile.cold.blank_page'
+
+@benchmark.Enabled('has tabs')
+@benchmark.Enabled('win', 'linux', 'mac')
+class StartupLargeProfileWarmBlankPage(_StartupWarm):
+ """Measures warm startup time with a large profile."""
+ tag = 'warm'
+ page_set = page_sets.BlankPageSet
+
+ def __init__(self, max_failures=None):
+ super(StartupLargeProfileWarmBlankPage, self).__init__(max_failures)
+ self.generated_profile_archive = "large_profile.zip"
+
+ @classmethod
+ def Name(cls):
+ return 'startup.large_profile.warm.blank_page'
« no previous file with comments | « no previous file | tools/perf/generated_profiles/darwin/large_profile.zip.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698