diff options
author | Mike Ma <yanmin@google.com> | 2017-10-31 12:30:42 -0700 |
---|---|---|
committer | Mike Ma <yanmin@google.com> | 2017-11-01 14:20:31 -0700 |
commit | d2239828d608a936e8a92319ce9c2b415998acb8 (patch) | |
tree | 853e1ee7885b54411e32bdefb933655c2c16c661 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | f8a9169949c589755d300530f7b2390e687a9f8b (diff) |
Record proto to file in am instrument
Add an option -f to record instrumentdata proto produced by am instrument
to a file in addition to printing to stdout. Default path is
/sdcard/instrument-logs/log-yyyyMMdd-hhmmss-SSS.instrumentation_data_proto.
If the file exits, it will be deleted before writing. Path can be changed
via optional <FILE> argument after -f.
If -f and -m are both present, proto will be written to a file and print
to stdout.
Test: build, flash and run:
bit -bi FrameworksCoreTests
adb shell am instrument -w -r -f tmp/tmp.log \
-e class com.android.internal.os.BatteryStatsNoteTest \
com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: Iabc320c066d5995eee842c26416623eeb3d403f4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions