summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorNg Zhi An <zhin@google.com>2019-01-16 15:35:51 -0800
committerNg Zhi An <zhin@google.com>2019-01-22 08:48:33 -0800
commit7ff7fdb76f756f3ab6f927f38a9219258416a960 (patch)
tree0aa96f3ae6360551e8d7fe14dc9a80aafad19fb4 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentc2888cbc48c98297360356fa13ecdd9afe102ad9 (diff)
Log broadcast dispatch latency during BOOT_COMPLETED
From device boot until BOOT_COMPLETED, log the dispatch latency of a broadcast, which is the duration between it being enqueued and it being dispatched, to get an idea of how long the queue is blocked for. Each time a broadcast is dispatched, we check mLogLatencyMetrics, which defaults to true when the queue is initialized, and log to statsd. When the queue is empty, we check if BOOT_COMPLETED is done. If it is, we stop logging by setting mLogLatencyMetrics to false, since it means that we have finished all broadcasts that would have been blocked by BOOT_COMPLETED. Bug: 120794810 Test: flash, reboot, use stasd_testdrive to verify logging Change-Id: I40c14744e5247412c0a03032fd5621706758a324
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions