Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java

Issue 2619383003: Add a separate Variations.FirstRun.SeedConnectTime histogram. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java
diff --git a/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java b/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java
index 1e792c456a86883a785eff4a64bd5e27f03b67d5..f6e5c7fd0b2184213b3f0d8185bc7c52f4367372 100644
--- a/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java
+++ b/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java
@@ -83,6 +83,12 @@ public class VariationsSeedService extends IntentService {
histogram.record(timeDeltaMillis);
}
+ private void recordSeedConnectTime(long timeDeltaMillis) {
+ TimesHistogramSample histogram = new TimesHistogramSample(
+ "Variations.FirstRun.SeedConnectTime", TimeUnit.MILLISECONDS);
+ histogram.record(timeDeltaMillis);
+ }
+
private boolean downloadContent() {
HttpURLConnection connection = null;
try {
@@ -101,6 +107,7 @@ public class VariationsSeedService extends IntentService {
return false;
}
+ recordSeedConnectTime(SystemClock.elapsedRealtime() - startTimeMillis);
// Convert the InputStream into a byte array.
byte[] rawSeed = getRawSeed(connection);
String signature = getHeaderFieldOrEmpty(connection, "X-Seed-Signature");
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698