aboutsummaryrefslogtreecommitdiff
path: root/envsetup.sh
diff options
context:
space:
mode:
authorSantiago Aboy Solanes <solanes@google.com>2023-07-07 15:30:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-07-07 15:30:21 +0000
commit9ebfc23191db96aeeddaddc948d31183c70bfe3b (patch)
tree47ebb93e958d623a5bb29c2f49c960039ef77af8 /envsetup.sh
parent4fb5cb01f13e21321ef64ec02bce65ad54d6c921 (diff)
parent06adf82ca79488d675eea837a030bfe455f29f3e (diff)
Merge "Remove dmtracedump from build/make" into main
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh47
1 files changed, 0 insertions, 47 deletions
diff --git a/envsetup.sh b/envsetup.sh
index f4755dd336..8b70dc455a 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1358,53 +1358,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()