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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_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/tcmalloc_heap_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py
index f177a3cea158b5ca63ecd933a3798d4ab5f0e826..de8d48b317bd65076e77939f144784558369c1f6 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py
@@ -112,14 +112,14 @@ class TCMallocHeapProfiler(profiler.Profiler):
return 'tcmalloc-heap'
@classmethod
- def is_supported(cls, options):
- if options and options.browser_type.startswith('cros'):
+ def is_supported(cls, browser_type):
+ if browser_type.startswith('cros'):
return False
if sys.platform.startswith('linux'):
return True
- if not options:
+ if browser_type == 'any':
return android_browser_finder.CanFindAvailableBrowsers()
- return options.browser_type.startswith('android')
+ return browser_type.startswith('android')
@classmethod
def CustomizeBrowserOptions(cls, options):

Powered by Google App Engine
This is Rietveld 408576698