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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/iprofiler_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/iprofiler_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/iprofiler_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/iprofiler_profiler.py
index b5e5e2debd08072491c5a75e527dbe8d9a8853d6..d7f69ba2659bdfa5e3067b16874e509b0d2ca156 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/iprofiler_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/iprofiler_profiler.py
@@ -84,13 +84,13 @@ class IprofilerProfiler(profiler.Profiler):
return 'iprofiler'
@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_files = []

Powered by Google App Engine
This is Rietveld 408576698