| 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):
|
|
|