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

Commit fe9731f4 authored by Felipe Leme's avatar Felipe Leme Committed by Android (Google) Code Review
Browse files

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

parents 65698a96 510e922e
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);