diff options
| -rw-r--r-- | packages/Shell/src/com/android/shell/BugreportProgressService.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java index d8b0571c364f..20aca0efc6ad 100644 --- a/packages/Shell/src/com/android/shell/BugreportProgressService.java +++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java @@ -769,6 +769,12 @@ public class BugreportProgressService extends Service { info.renameScreenshots(mScreenshotsDir); info.bugreportFile = bugreportFile; + final int max = intent.getIntExtra(EXTRA_MAX, -1); + if (max != -1) { + MetricsLogger.histogram(this, "dumpstate_duration", max); + info.max = max; + } + final File screenshot = getFileExtra(intent, EXTRA_SCREENSHOT); if (screenshot != null) { info.addScreenshot(screenshot); @@ -1541,7 +1547,7 @@ public class BugreportProgressService extends Service { return "id: " + id + ", pid: " + pid + ", name: " + name + ", finished: " + finished + "\n\ttitle: " + title + "\n\tdescription: " + description + "\n\tfile: " + bugreportFile + "\n\tscreenshots: " + screenshotFiles - + "\n\tprogress: " + progress + "/" + max + "(" + percent + ")" + + "\n\tprogress: " + progress + "/" + max + " (" + percent + ")" + "\n\tlast_update: " + getFormattedLastUpdate() + "\naddingDetailsToZip: " + addingDetailsToZip + " addedDetailsToZip: " + addedDetailsToZip; |