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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/vtune_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
« no previous file with comments | « tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/profiler/vtune_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/vtune_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/vtune_profiler.py
index 746349dd70e5e8d16231f5fa5db13360e2bf41e7..850f3a28e0bc1ae5a3a12b72f2f4e27c42d9cd34 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/vtune_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/vtune_profiler.py
@@ -84,11 +84,11 @@ class VTuneProfiler(profiler.Profiler):
return 'vtune'
@classmethod
- def is_supported(cls, options):
+ def is_supported(cls, browser_type):
if sys.platform != 'linux2':
return False
- 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
try:
return not subprocess.Popen(['amplxe-cl', '-version'],
« no previous file with comments | « tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698