aosp12/art/tools/dmtracedump/dumpdir.sh

12 lines
176 B
Bash

#!/bin/bash
FILES=`ls $1/*.data | sed "s/^\\(.*\\).data$/\\1/"`
mkdir -p $2
for F in $FILES
do
G=$2/`echo $F | sed "s/.*\\///g"`.html
dmtracedump -h -p $F > $G
done