diff options
author | 2021-11-05 15:26:13 +0000 | |
---|---|---|
committer | 2021-11-08 10:15:53 +0000 | |
commit | 7f7f6442ccd272a04c4d21f573ae40f1887b41e1 (patch) | |
tree | 0faaf406b9df3955e1765891256fc043ab8e7e5f /compiler/utils/jni_macro_assembler.h | |
parent | cdf6c49112615419b0d170bac31685bd0b3dae0e (diff) |
Allow running art run-tests with simpleperf.
Add "--simpleperf" option to art/test/run-test and pass it to
art/test/etc/run-test-jar. With this option dalvikvm invocation is
wrapped in "simpleperf record ... simpleperf report".
The new option can be used with chroot-based testsing approach described
in art/test/README.chroot.md. For example, to profile 001-HelloWorld on
a sargo device with serial 8BLAY00EVN (64-bit), do the following steps:
unset ART_TEST_ANDROID_ROOT
unset CUSTOM_TARGET_LINKER
unset ART_TEST_ANDROID_ART_ROOT
unset ART_TEST_ANDROID_RUNTIME_ROOT
unset ART_TEST_ANDROID_I18N_ROOT
unset ART_TEST_ANDROID_TZDATA_ROOT
export ART_TEST_CHROOT=/data/local/art-test-chroot
export ANDROID_SERIAL=8BLAY00EVN
export ART_HEAP_POISONING=true
. ./build/envsetup.sh
lunch aosp_sargo-userdebug
art/tools/buildbot-build.sh --target -j72 # --installclean
art/tools/buildbot-cleanup-device.sh
art/tools/buildbot-setup-device.sh
art/tools/buildbot-sync.sh
art/test/run-test --simpleperf --chroot $ART_TEST_CHROOT --64 001-HelloWorld
art/tools/buildbot-teardown-device.sh
art/tools/buildbot-cleanup-device.sh
Bug: none
Test: Ran the above steps, observed simpleperf stats in the output.
Change-Id: I1ce14fa94add3a1a6e7cec59382909ad6d11ef2a
Diffstat (limited to 'compiler/utils/jni_macro_assembler.h')
0 files changed, 0 insertions, 0 deletions