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

Commit 510e922e authored by Felipe Leme's avatar Felipe Leme
Browse files

Created counter (tron_varz_dumpstate_duration) for dumpstate duration.

BUG: 26759986
Change-Id: I18534c127b35776a03e31b9d5cd190d864dff9e6
parent 6605bd89
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);