aboutsummaryrefslogtreecommitdiff
path: root/systrace.py
diff options
context:
space:
mode:
authorYasuhiro Matsuda <mazda@google.com>2015-06-29 22:32:15 +0900
committerYasuhiro Matsuda <mazda@google.com>2015-07-28 18:55:45 +0900
commit5b094e32d30c3033e50269f86e6cc9700ec60b98 (patch)
treee2fb08047373da4c4e73885771b13cbe600d2a9c /systrace.py
parent25c561dffee8468fc0ae658925932814f85f691b (diff)
downloadchromium-trace-5b094e32d30c3033e50269f86e6cc9700ec60b98.tar.gz
Enable Systrace to be used during boot.
- Add BootAgent, which is an AtraceAgent specializing in tracing the boot sequence, and its test. - Add --boot option. This sets persist.debug.atrace.boottrace property, which triggers atrace during boot, writes categories to /data/local/tmp/boottracecategories, which is used by atrace as enabled categories, and reboots the device. Once the device has booted up, the report is created by the user hitting Ctrl+C. BUG: 21739901 Change-Id: I5e27a402f3d32cb151227d3d222c05da39eca28c
Diffstat (limited to 'systrace.py')
-rwxr-xr-xsystrace.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/systrace.py b/systrace.py
index 38443feb..fdf895a6 100755
--- a/systrace.py
+++ b/systrace.py
@@ -69,6 +69,10 @@ def parse_options(argv):
parser.add_option('--link-assets', dest='link_assets', default=False,
action='store_true',
help='(deprecated)')
+ parser.add_option('--boot', dest='boot', default=False, action='store_true',
+ help='reboot the device with tracing during boot enabled. '
+ 'The report is created by hitting Ctrl+C after the device '
+ 'has booted up.')
parser.add_option('--from-file', dest='from_file', action='store',
help='read the trace from a file (compressed) rather than '
'running a live trace')