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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py

Issue 23458037: Profiler.is_supported takes browser_type instead of options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix loading_profile.py Created 7 years, 3 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/telemetry/telemetry/core/platform/profiler/sample_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py
index e5eba03e00fbbc77b4c2ccd24156a1dbb9a24324..a94be76717ff3c4b3beece1c93921747f0cb0ba5 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py
@@ -75,13 +75,13 @@ class SampleProfiler(profiler.Profiler):
return 'sample'
@classmethod
- def is_supported(cls, options):
+ def is_supported(cls, browser_type):
if sys.platform != 'darwin':
return False
- if not options:
+ if browser_type == 'any':
return True
- return (not options.browser_type.startswith('android') and
- not options.browser_type.startswith('cros'))
+ return (not browser_type.startswith('android') and
+ not browser_type.startswith('cros'))
def CollectProfile(self):
output_paths = []

Powered by Google App Engine
This is Rietveld 408576698