From b1e2e95999a8e8ea5a8b60a2beae66a0f34cd235 Mon Sep 17 00:00:00 2001 From: Margaret Leibovic Date: Tue, 2 Feb 2016 10:06:52 -0500 Subject: [PATCH] Backed out changeset cd18c8af8b56 --HG-- extra : commitid : EgmuwwZ0Oa0 --- .../java/org/mozilla/gecko/BrowserApp.java | 2 ++ .../mozilla/gecko/db/LocalURLMetadata.java | 2 ++ toolkit/components/telemetry/Histograms.json | 23 +++++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java index 37e09fa2c5fd..c394cbbc74f5 100644 --- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java +++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java @@ -1729,6 +1729,8 @@ public class BrowserApp extends GeckoApp final ContentResolver cr = getContentResolver(); Telemetry.addToHistogram("PLACES_PAGES_COUNT", db.getCount(cr, "history")); Telemetry.addToHistogram("FENNEC_BOOKMARKS_COUNT", db.getCount(cr, "bookmarks")); + Telemetry.addToHistogram("FENNEC_FAVICONS_COUNT", db.getCount(cr, "favicons")); + Telemetry.addToHistogram("FENNEC_THUMBNAILS_COUNT", db.getCount(cr, "thumbnails")); Telemetry.addToHistogram("FENNEC_READING_LIST_COUNT", db.getReadingListAccessor().getCount(cr)); Telemetry.addToHistogram("BROWSER_IS_USER_DEFAULT", (isDefaultBrowser(Intent.ACTION_VIEW) ? 1 : 0)); Telemetry.addToHistogram("FENNEC_TABQUEUE_ENABLED", (TabQueueHelper.isTabQueueEnabled(BrowserApp.this) ? 1 : 0)); diff --git a/mobile/android/base/java/org/mozilla/gecko/db/LocalURLMetadata.java b/mobile/android/base/java/org/mozilla/gecko/db/LocalURLMetadata.java index e8615dbff42e..4e6a576c7fdf 100644 --- a/mobile/android/base/java/org/mozilla/gecko/db/LocalURLMetadata.java +++ b/mobile/android/base/java/org/mozilla/gecko/db/LocalURLMetadata.java @@ -181,6 +181,8 @@ public class LocalURLMetadata implements URLMetadata { } } + Telemetry.addToHistogram("FENNEC_TILES_CACHE_HIT", data.size()); + // If everything was in the cache, we're done! if (urlsToQuery.size() == 0) { return Collections.unmodifiableMap(data); diff --git a/toolkit/components/telemetry/Histograms.json b/toolkit/components/telemetry/Histograms.json index 5da64c3868cf..65fba0dd2c90 100644 --- a/toolkit/components/telemetry/Histograms.json +++ b/toolkit/components/telemetry/Histograms.json @@ -3397,6 +3397,22 @@ "alert_emails": ["mobile-frontend@mozilla.com"], "bug_numbers": [1244704] }, + "FENNEC_FAVICONS_COUNT": { + "expires_in_version": "40", + "kind": "exponential", + "high": "2000", + "n_buckets": 10, + "cpp_guard": "ANDROID", + "description": "Number of favicons stored in the browser DB *** No longer needed (bug 1156565). Delete histogram and accumulation code! ***" + }, + "FENNEC_THUMBNAILS_COUNT": { + "expires_in_version": "40", + "kind": "exponential", + "high": "2000", + "n_buckets": 10, + "cpp_guard": "ANDROID", + "description": "Number of thumbnails stored in the browser DB *** No longer needed (bug 1156565). Delete histogram and accumulation code! ***" + }, "FENNEC_READING_LIST_COUNT": { "expires_in_version": "50", "kind": "exponential", @@ -8143,6 +8159,13 @@ "kind": "flag", "description": "If a master-password is enabled for this profile" }, + "FENNEC_TILES_CACHE_HIT": { + "expires_in_version": "40", + "kind": "linear", + "high": "13", + "n_buckets": 12, + "description": "Cache hits on the tile-info metadata database *** No longer needed (bug 1156565). Delete histogram and accumulation code! ***" + }, "DISPLAY_SCALING_OSX" : { "expires_in_version": "never", "kind": "linear",