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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/strace_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/strace_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
index 6d64700481807348c1f27ffd0c88f0c6e569ffcb..f2701068c37de29acff104756aefcb1df7ad8f6d 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
@@ -217,12 +217,12 @@ class StraceProfiler(profiler.Profiler):
return 'strace'
@classmethod
- def is_supported(cls, options):
+ def is_supported(cls, browser_type):
if sys.platform != 'linux2':
return False
# TODO(tonyg): This should be supported on android and cros.
- if options and (options.browser_type.startswith('android')
- or options.browser_type.startswith('cros')):
+ if (browser_type.startswith('android') or
+ browser_type.startswith('cros')):
return False
return True

Powered by Google App Engine
This is Rietveld 408576698