Add feature recording critical timestamps to track to predump latency.
Test: Manually, flash and trigger predump and check the timestamp recorded under: /data/vendor/dump_touch/ folder Bug: 387909187 Flag: EXEMPT log only update Change-Id: Ib926efecb27e6df02927eba0353a1c18cb04d27d Signed-off-by: Kai Hsieh <kaihsieh@google.com>
This commit is contained in:
parent
8ada857980
commit
a736c0013e
1 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,10 @@ DIR=/data/vendor/dump_touch
|
|||
SCRIPT_DIR=/vendor/bin/dump_touch
|
||||
LOCKFILE="$DIR"/dumping
|
||||
LOGFILE="$DIR"/dump.log
|
||||
DEBUG_START_TIME="$DIR"/start
|
||||
DEBUG_END_TIME="$DIR"/end
|
||||
|
||||
date +%s%N > $DEBUG_START_TIME
|
||||
|
||||
if [ ! -f $LOCKFILE ]
|
||||
then
|
||||
|
@ -41,4 +45,4 @@ fi
|
|||
|
||||
echo 2 > $LOCKFILE
|
||||
|
||||
|
||||
date +%s%N > $DEBUG_END_TIME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue