diff options
author | Wale Ogunwale <ogunwale@google.com> | 2015-06-08 17:44:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-08 17:45:04 +0000 |
commit | 281dffb76f1bb0e0e9d012fb9b111b040f4745d7 (patch) | |
tree | fa10b81bb7e1ca0bc10be02bc53fccea9e40be75 | |
parent | ce1590dac98619fcedadf441ddc02c88fc431aa1 (diff) | |
parent | 7829c81345ce8b7e44ab22bf4433be77e0ebd8ae (diff) | |
download | frameworks_base-281dffb76f1bb0e0e9d012fb9b111b040f4745d7.zip frameworks_base-281dffb76f1bb0e0e9d012fb9b111b040f4745d7.tar.gz frameworks_base-281dffb76f1bb0e0e9d012fb9b111b040f4745d7.tar.bz2 |
Merge "Include launched packageName in systrace." into mnc-dev
-rwxr-xr-x | services/core/java/com/android/server/am/ActivityRecord.java | 2 | ||||
-rw-r--r-- | services/core/java/com/android/server/am/ActivityStack.java | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/am/ActivityRecord.java b/services/core/java/com/android/server/am/ActivityRecord.java index 3765a3c..d16eab6 100755 --- a/services/core/java/com/android/server/am/ActivityRecord.java +++ b/services/core/java/com/android/server/am/ActivityRecord.java @@ -982,7 +982,7 @@ final class ActivityRecord { final long totalTime = stack.mLaunchStartTime != 0 ? (curTime - stack.mLaunchStartTime) : thisTime; if (SHOW_ACTIVITY_START_TIME) { - Trace.asyncTraceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER, "launching", 0); + Trace.asyncTraceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER, "launching: " + packageName, 0); EventLog.writeEvent(EventLogTags.AM_ACTIVITY_LAUNCH_TIME, userId, System.identityHashCode(this), shortComponentName, thisTime, totalTime); diff --git a/services/core/java/com/android/server/am/ActivityStack.java b/services/core/java/com/android/server/am/ActivityStack.java index 30ee214..eb5af9e 100644 --- a/services/core/java/com/android/server/am/ActivityStack.java +++ b/services/core/java/com/android/server/am/ActivityStack.java @@ -679,11 +679,11 @@ final class ActivityStack { "Launch completed; removing icicle of " + r.icicle); } - private void startLaunchTraces() { + private void startLaunchTraces(String packageName) { if (mFullyDrawnStartTime != 0) { Trace.asyncTraceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER, "drawing", 0); } - Trace.asyncTraceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, "launching", 0); + Trace.asyncTraceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, "launching: " + packageName, 0); Trace.asyncTraceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, "drawing", 0); } @@ -698,11 +698,11 @@ final class ActivityStack { if (r.displayStartTime == 0) { r.fullyDrawnStartTime = r.displayStartTime = SystemClock.uptimeMillis(); if (mLaunchStartTime == 0) { - startLaunchTraces(); + startLaunchTraces(r.packageName); mLaunchStartTime = mFullyDrawnStartTime = r.displayStartTime; } } else if (mLaunchStartTime == 0) { - startLaunchTraces(); + startLaunchTraces(r.packageName); mLaunchStartTime = mFullyDrawnStartTime = SystemClock.uptimeMillis(); } } |