summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMike Ma <yanmin@google.com>2018-03-13 18:53:21 -0700
committerMike Ma <yanmin@google.com>2018-03-16 17:19:15 -0700
commit234d1828ca4a706676ad6f3fa0629959c74297c7 (patch)
treea71d04c3e5774473be51b0408e434baff042b0fb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent7d17dd7184ce2cdf3dbc0dac6ead40549ef3987b (diff)
Resolve STATSD and batterystats race condition
Both STATSD and batterystats need to read uid cpu info. However, uid cpu stats needs to be cleared from time to time to conserve memory. To resolve this race condition, only batterystats will remove uid stats, both from readers and from the kernel, also with a delay, so that STATSD can access such info before it is removed. Refactored readers to reuse some common code. Also removed string reader from KernelUidCpuFreqTimeReader completely since binary reader has been working fine for a while. Change-Id: I209bdcec642e1a29a44b566ce98ebbfaaacb4e6a Fixes: 72172569 Test: BatteryStatsCpuTimesTest Test: KernelUidCpuActiveTimeReaderTest Test: KernelUidCpuClusterTimeReaderTest Test: KernelUidCpuFreqTimeReaderTest
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions