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:
Kai Hsieh 2025-01-06 14:37:12 +08:00
parent 8ada857980
commit a736c0013e

View file

@ -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