diff options
author | Jamie Gennis <jgennis@google.com> | 2012-05-07 18:00:11 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2012-05-07 18:00:11 -0700 |
commit | 415e5d800e41ba0a4722bdbdc4e4a4c4f0e316d4 (patch) | |
tree | 12daefec429ce9068b6c11fe64d8245567d85a36 /systrace.py | |
parent | a155cfdd6b31ffe2f30991979a2a7f9e9a37662d (diff) | |
download | chromium-trace-415e5d800e41ba0a4722bdbdc4e4a4c4f0e316d4.tar.gz |
systrace.py: support for CPU idle event tracing
This change adds the -i and --cpu-idle flags to systrace.py to enable tracing
of CPU idle events in the kernel.
Change-Id: I668718c3abd07fe9b5fa19871c36e83267017caf
Diffstat (limited to 'systrace.py')
-rwxr-xr-x | systrace.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/systrace.py b/systrace.py index 232aca3e..1eeb2c7a 100755 --- a/systrace.py +++ b/systrace.py @@ -34,6 +34,8 @@ def main(): help='use a trace buffer size of N KB', metavar='N') parser.add_option('-f', '--cpu-freq', dest='trace_cpu_freq', default=False, action='store_true', help='trace CPU frequency changes') + parser.add_option('-i', '--cpu-idle', dest='trace_cpu_idle', default=False, + action='store_true', help='trace CPU idle events') parser.add_option('-l', '--cpu-load', dest='trace_cpu_load', default=False, action='store_true', help='trace CPU load') parser.add_option('-s', '--no-cpu-sched', dest='trace_cpu_sched', default=True, @@ -71,6 +73,8 @@ def main(): atrace_args = ['adb', 'shell', 'atrace', '-z'] if options.trace_cpu_freq: atrace_args.append('-f') + if options.trace_cpu_idle: + atrace_args.append('-i') if options.trace_cpu_load: atrace_args.append('-l') if options.trace_cpu_sched: |