diff options
author | Nathaniel Nifong <nifong@google.com> | 2019-07-25 10:44:08 -0400 |
---|---|---|
committer | Nathaniel Nifong <nifong@google.com> | 2019-08-01 11:11:26 -0400 |
commit | e2617db752119a4aed7feaafb9c910499c458e93 (patch) | |
tree | 9bc9afe53beb67b21524747ca5c8d952fa9d1b01 /libs/hwui/tests | |
parent | 9f3eb4a13036ced857994c3ae18e84e77df605fa (diff) |
use mskp extension to differentiate multi frame files.
Test: Captured a 1-frame, and multi-frame file
Change-Id: Id8583c163af0ee0a0ac8fe12aee92d2cfce272d1
Diffstat (limited to 'libs/hwui/tests')
-rwxr-xr-x | libs/hwui/tests/scripts/skp-capture.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/hwui/tests/scripts/skp-capture.sh b/libs/hwui/tests/scripts/skp-capture.sh index aad31fcc8eb9..4b46fbf86818 100755 --- a/libs/hwui/tests/scripts/skp-capture.sh +++ b/libs/hwui/tests/scripts/skp-capture.sh @@ -29,10 +29,14 @@ fi phase1_timeout_seconds=60 phase2_timeout_seconds=300 package="$1" -filename="$(date '+%H%M%S').skp" +extension="skp" +if (( "$2" > 1 )); then # 2nd arg is number of frames + extension="mskp" # use different extension for multi frame files. +fi +filename="$(date '+%H%M%S').${extension}" remote_path="/data/data/${package}/cache/${filename}" local_path_prefix="$(date '+%Y-%m-%d_%H%M%S')_${package}" -local_path="${local_path_prefix}.skp" +local_path="${local_path_prefix}.${extension}" enable_capture_key='debug.hwui.capture_skp_enabled' enable_capture_value=$(adb shell "getprop '${enable_capture_key}'") |