Commit 6d015838 authored by bttk's avatar bttk Committed by Commit Bot

metrics: Remove remaining uses of CachedMetrics from module_installer

The previous patch missed a file. See:
https://chromium-review.googlesource.com/c/chromium/src/+/2019479

Bug: 1046181
Change-Id: I3b8f76acd34adb61430b134eedd82e460e49827c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2067931Reviewed-by: default avatarGang Wu <gangwu@chromium.org>
Reviewed-by: default avatarTibor Goldschwendt <tiborg@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: bttk <bttk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744060}
parent 4dcbf5c0
...@@ -6,7 +6,7 @@ package org.chromium.components.module_installer.util; ...@@ -6,7 +6,7 @@ package org.chromium.components.module_installer.util;
import android.os.SystemClock; import android.os.SystemClock;
import org.chromium.base.metrics.CachedMetrics.TimesHistogramSample; import org.chromium.base.metrics.RecordHistogram;
import java.io.Closeable; import java.io.Closeable;
...@@ -38,8 +38,6 @@ public class Timer implements Closeable { ...@@ -38,8 +38,6 @@ public class Timer implements Closeable {
} }
public static void recordStartupTime() { public static void recordStartupTime() {
String name = "Android.FeatureModules.StartupTime"; RecordHistogram.recordTimesHistogram("Android.FeatureModules.StartupTime", sTotalTime);
TimesHistogramSample sample = new TimesHistogramSample(name);
sample.record(sTotalTime);
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment