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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/java_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/java_heap_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py
index c8d62a9a2567719bce515ef8d91bf89164be251f..99621ce896e40d92a4ada42b18a788086f64d860 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py
@@ -31,10 +31,10 @@ class JavaHeapProfiler(profiler.Profiler):
return 'java-heap'
@classmethod
- def is_supported(cls, options):
- if not options:
+ def is_supported(cls, browser_type):
+ if browser_type == 'any':
return android_browser_finder.CanFindAvailableBrowsers()
- return options.browser_type.startswith('android')
+ return browser_type.startswith('android')
def CollectProfile(self):
self._timer.cancel()

Powered by Google App Engine
This is Rietveld 408576698