StrictMode.Span support

Support for annotating critical regions (e.g. animations) with
a tag to be uploaded.

Change-Id: I412fc78f40dc05c9a3c9f62a4b0463201dbdb767
This commit is contained in:
Brad Fitzpatrick
2010-11-10 18:08:36 -08:00
parent 8bda1c1ef7
commit e7520d89fe
2 changed files with 174 additions and 1 deletions

View File

@@ -6702,9 +6702,14 @@ public final class ActivityManagerService extends ActivityManagerNative
if (info.broadcastIntentAction != null) {
sb.append("Broadcast-Intent-Action: ").append(info.broadcastIntentAction).append("\n");
}
if (info != null && info.durationMillis != -1) {
if (info.durationMillis != -1) {
sb.append("Duration-Millis: ").append(info.durationMillis).append("\n");
}
if (info.tags != null) {
for (String tag : info.tags) {
sb.append("Span-Tag: ").append(tag).append("\n");
}
}
sb.append("\n");
if (info.crashInfo != null && info.crashInfo.stackTrace != null) {
sb.append(info.crashInfo.stackTrace);