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

Commit b594e3e6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Reset binder/looper stats when statsd dies."

parents 46bc330a 6e725278
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2065,6 +2065,17 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
        mContext.unregisterReceiver(mShutdownEventReceiver);
        cancelAnomalyAlarm();
        cancelPullingAlarm();

        BinderCallsStatsService.Internal binderStats =
                LocalServices.getService(BinderCallsStatsService.Internal.class);
        if (binderStats != null) {
            binderStats.reset();
        }

        LooperStats looperStats = LocalServices.getService(LooperStats.class);
        if (looperStats != null) {
            looperStats.reset();
        }
    }

    @Override