Merge "Make batterystats less chatty" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-05-12 00:15:51 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {