Merge "Make batterystats less chatty" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
89d64cbbd9
@@ -9812,10 +9812,9 @@ public class BatteryStatsImpl extends BatteryStats {
|
||||
}
|
||||
});
|
||||
|
||||
// TODO: STOPSHIP, remove the "true" below after b/34961340 is fixed
|
||||
if (DEBUG_ENERGY_CPU || true) {
|
||||
Slog.d(TAG, "Reading cpu stats took " + (mClocks.elapsedRealtime() - startTimeMs) +
|
||||
" ms");
|
||||
final long elapse = (mClocks.elapsedRealtime() - startTimeMs);
|
||||
if (DEBUG_ENERGY_CPU || (elapse >= 100)) {
|
||||
Slog.d(TAG, "Reading cpu stats took " + elapse + " ms");
|
||||
}
|
||||
|
||||
if (mOnBatteryInternal && numWakelocks > 0) {
|
||||
|
||||
Reference in New Issue
Block a user