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

Unified Diff: systrace/systrace/run_systrace.py

Issue 2391383004: Update systrace and profile_chrome's default agent behavior (Closed)
Patch Set: Created 4 years, 2 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: systrace/systrace/run_systrace.py
diff --git a/systrace/systrace/run_systrace.py b/systrace/systrace/run_systrace.py
index dc910609aa679abb6fbbde71b4582d19d437cb09..2cff05f733020942b4ad281bf9c9fd729c239f5e 100755
--- a/systrace/systrace/run_systrace.py
+++ b/systrace/systrace/run_systrace.py
@@ -129,6 +129,10 @@ def main_impl(arguments):
raise RuntimeError('Categories are only valid for atrace/ftrace. Target '
'platform must be either Android or Linux.')
+ # Include atrace categories by default in Systrace.
+ if options.target == 'android' and not options.atrace_categories:
+ options.atrace_categories = atrace_agent.DEFAULT_CATEGORIES
+
if options.target == 'android' and not options.from_file:
initialize_devil()
if not options.device_serial_number:

Powered by Google App Engine
This is Rietveld 408576698