diff options
| author | Santiago Aboy Solanes <solanes@google.com> | 2023-06-27 16:06:23 +0100 |
|---|---|---|
| committer | Santiago Aboy Solanes <solanes@google.com> | 2023-06-27 16:06:23 +0100 |
| commit | 06adf82ca79488d675eea837a030bfe455f29f3e (patch) | |
| tree | 5dd82fa8805bbedec68f4d93e67f0146f146b5a5 /envsetup.sh | |
| parent | 24c928cda89567cd28e3849489d648f58aa1b46d (diff) | |
Remove dmtracedump from build/make
Bug: 287576918
Fixes: 287576918
Change-Id: Ie84cccf97ddf7e9277d28759000ad35ebf813d1a
Diffstat (limited to 'envsetup.sh')
| -rw-r--r-- | envsetup.sh | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/envsetup.sh b/envsetup.sh index d292dbb3ad..7520f05965 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1357,53 +1357,6 @@ function getprebuilt get_abs_build_var ANDROID_PREBUILTS } -function tracedmdump() -{ - local T=$(gettop) - if [ ! "$T" ]; then - echo "Couldn't locate the top of the tree. Try setting TOP." - return - fi - local prebuiltdir=$(getprebuilt) - local arch=$(gettargetarch) - local KERNEL=$T/prebuilts/qemu-kernel/$arch/vmlinux-qemu - - local TRACE=$1 - if [ ! "$TRACE" ] ; then - echo "usage: tracedmdump tracename" - return - fi - - if [ ! -r "$KERNEL" ] ; then - echo "Error: cannot find kernel: '$KERNEL'" - return - fi - - local BASETRACE=$(basename $TRACE) - if [ "$BASETRACE" = "$TRACE" ] ; then - TRACE=$ANDROID_PRODUCT_OUT/traces/$TRACE - fi - - echo "post-processing traces..." - rm -f $TRACE/qtrace.dexlist - post_trace $TRACE - if [ $? -ne 0 ]; then - echo "***" - echo "*** Error: malformed trace. Did you remember to exit the emulator?" - echo "***" - return - fi - echo "generating dexlist output..." - /bin/ls $ANDROID_PRODUCT_OUT/system/framework/*.jar $ANDROID_PRODUCT_OUT/system/app/*.apk $ANDROID_PRODUCT_OUT/data/app/*.apk 2>/dev/null | xargs dexlist > $TRACE/qtrace.dexlist - echo "generating dmtrace data..." - q2dm -r $ANDROID_PRODUCT_OUT/symbols $TRACE $KERNEL $TRACE/dmtrace || return - echo "generating html file..." - dmtracedump -h $TRACE/dmtrace >| $TRACE/dmtrace.html || return - echo "done, see $TRACE/dmtrace.html for details" - echo "or run:" - echo " traceview $TRACE/dmtrace" -} - # communicate with a running device or emulator, set up necessary state, # and run the hat command. function runhat() |
