Reduce frequency of LongArrayMultistateCounter.incrementValues calls
This is an optimization that skips incrementing a multi-state counter with an array of zeros. Adding a zero does not take much time, but locking the java array in the JNI layer is expensive. Bug: 395954049 Test: atest PowerStatsTests; atest PowerStatsTests:BatteryUsageStatsProviderPerfTest#getBatteryUsageStats_accumulated Flag: EXEMPT bugfix Change-Id: I5310a08bf8a56818ee3361097842f763f3c026ac
Loading
Please register or sign in to comment
