summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Ryan Zuklie <rzuklie@google.com> 2022-09-07 19:15:16 -0700
committer Ryan Zuklie <rzuklie@google.com> 2022-09-08 10:30:51 -0700
commitf3f3f517fd48295b0605c23e06a9755d608d276a (patch)
treeba12a048f270a3d0b917640f9ca3025381539dc5 /libs/androidfw/ResourceTimer.cpp
parent3c237a9aef6c931af34bf671f2d6a6c072557cfb (diff)
Export BatteryStats state bitmaps to ATrace
This uses logic similar to printBitDescriptions to parse the state bitmask along with the BitDescriptions to report the information as a trace counter. Due to current tracing limitations, values are not remembered outside of or between tracing. For slow moving things (like wifi enabled/disabled), we would miss the counter in most traces if using `traceCounter` alone. The Perfetto team's current solution is to read system properties when the trace starts in order to fill in the initial value. To limit the impact of this, this aspect is only enabled in userdebug. Bug: 245749764 Test: presubmit and local perfetto tracing Change-Id: Iaae4e9796a44be3ffdaee31b956bbb3e87735ead
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions