Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6132ed34 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Store binder thread CPU times in the summary parcel

Bug: 189361771
Test: "adb dumpsys batterystats" before and after reboot
Change-Id: I3bdd8d716255812098ab594a89ebdd7455480e93
parent 87d4c9a9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ public class BatteryStatsImpl extends BatteryStats {
    private static final int MAGIC = 0xBA757475; // 'BATSTATS'
    // Current on-disk Parcel version
    static final int VERSION = 199;
    static final int VERSION = 200;
    // The maximum number of names wakelocks we will keep track of
    // per uid; once the limit is reached, we batch the remaining wakelocks
@@ -15541,6 +15541,9 @@ public class BatteryStatsImpl extends BatteryStats {
                }
            }
        }
        mBinderThreadCpuTimesUs =
                LongSamplingCounterArray.readSummaryFromParcelLocked(in, mOnBatteryTimeBase);
    }
    /**
@@ -16065,6 +16068,8 @@ public class BatteryStatsImpl extends BatteryStats {
                }
            }
        }
        LongSamplingCounterArray.writeSummaryToParcelLocked(out, mBinderThreadCpuTimesUs);
    }
    public void readFromParcel(Parcel in) {