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

Commit eea4865f authored by Simon MacMullen's avatar Simon MacMullen
Browse files

Add prefix to job trace slice.

This lets us recognize that the slice indeed represents a job.

Change-Id: I311dab24635d287a7cc99f730203a7de811b7c1c
Bug: 230864839
Test: Recorded a trace.
parent bcd00b31
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -366,7 +366,7 @@ public final class JobServiceContext implements ServiceConnection {
                    job.getNumFailures());
            // Use the context's ID to distinguish traces since there'll only be one job running
            // per context.
            Trace.asyncTraceBegin(Trace.TRACE_TAG_SYSTEM_SERVER, job.getBatteryName(), getId());
            Trace.asyncTraceBegin(Trace.TRACE_TAG_SYSTEM_SERVER, job.getTag(), getId());
            try {
                mBatteryStats.noteJobStart(job.getBatteryName(), job.getSourceUid());
            } catch (RemoteException e) {
@@ -1030,7 +1030,7 @@ public final class JobServiceContext implements ServiceConnection {
                completedJob.getJob().getPriority(),
                completedJob.getEffectivePriority(),
                completedJob.getNumFailures());
        Trace.asyncTraceEnd(Trace.TRACE_TAG_SYSTEM_SERVER, completedJob.getBatteryName(), getId());
        Trace.asyncTraceEnd(Trace.TRACE_TAG_SYSTEM_SERVER, completedJob.getTag(), getId());
        try {
            mBatteryStats.noteJobFinish(mRunningJob.getBatteryName(), mRunningJob.getSourceUid(),
                    internalStopReason);