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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/perf_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/perf_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
index 574de173d9c5986c43e9eabfcc997600d51b812c..669f255748bf14dcd0b217555a779d8db20bc664 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
@@ -117,10 +117,10 @@ class PerfProfiler(profiler.Profiler):
return 'perf'
@classmethod
- def is_supported(cls, options):
+ def is_supported(cls, browser_type):
if sys.platform != 'linux2':
return False
- if options and options.browser_type.startswith('cros'):
+ if browser_type.startswith('cros'):
return False
return cls._CheckLinuxPerf() or cls._CheckAndroidPerf()

Powered by Google App Engine
This is Rietveld 408576698