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

Commit 343b9150 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Created counter (tron_varz_dumpstate_duration) for dumpstate duration." into nyc-dev

am: fe9731f4

* commit 'fe9731f4':
  Created counter (tron_varz_dumpstate_duration) for dumpstate duration.
parents 2cbf51ce fe9731f4
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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);