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

Issue 1032763002: Add favicon database histograms to UMA. (Closed)

Created:
5 years, 9 months ago by Roger McFarlane (Chromium)
Modified:
5 years, 8 months ago
Reviewers:
beaudoin, pkotwicz, brettw, jwd, sky
CC:
chromium-reviews, asvitkine+watch_chromium.org, beaudoin, huangs, brettw
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add favicon database histograms to UMA. This CL adds UMA histograms to track the follwing properties of the Favicon database. - database size - total number of favicon files/urls tracked by the database - number of large (touch) favicon files/urls tracked by the database (this is a subset of the above) - total number of favicon bitmap assets cached in the database - number of large (touch) favicon bitmap assets cached in the database (this is a subset of the above) - the number of URL mappings (generic url to icon url) in the database. The goal of this CL is to provide insight into the size of this database and the volume of data cached within it, particularly on mobile, which aggressively caches large/touch icons. R=sky@chromium.org, jwd@chromium.org BUG=467712 Committed: https://crrev.com/5520a4f099d29301612bc0e660309ceece929a8a Cr-Commit-Position: refs/heads/master@{#323647}

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 8

Patch Set 3 : simplify metric queries + add a historgram for number of url mappings being tracked #

Total comments: 2

Patch Set 4 : fixed a code layout nit #

Total comments: 16

Patch Set 5 : Apply review feedback. #

Total comments: 8

Patch Set 6 : improve code and histogram comments #

Total comments: 2

Patch Set 7 : Added description of when metrics are logged. #

Patch Set 8 : Rebase + fix owner email #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -5 lines) Patch
M components/history/core/browser/thumbnail_database.cc View 1 2 3 4 5 6 7 1 chunk +71 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +66 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
Roger McFarlane (Chromium)
This CL adds some missing favicon database metrics. PTAL?
5 years, 9 months ago (2015-03-25 18:13:04 UTC) #1
Roger McFarlane (Chromium)
https://codereview.chromium.org/1032763002/diff/20001/components/history/core/browser/thumbnail_database.cc File components/history/core/browser/thumbnail_database.cc (right): https://codereview.chromium.org/1032763002/diff/20001/components/history/core/browser/thumbnail_database.cc#newcode628 components/history/core/browser/thumbnail_database.cc:628: UMA_HISTOGRAM_MEMORY_MB("History.FaviconDatabaseSizeMB", file_mb); KB? https://codereview.chromium.org/1032763002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1032763002/diff/20001/tools/metrics/histograms/histograms.xml#newcode11280 tools/metrics/histograms/histograms.xml:11280: ...
5 years, 9 months ago (2015-03-25 18:20:19 UTC) #2
beaudoin
My worry here is doing that many SQL queries at init time to gather stats. ...
5 years, 9 months ago (2015-03-25 18:31:49 UTC) #4
Roger McFarlane (Chromium)
On 2015/03/25 18:31:49, beaudoin wrote: > My worry here is doing that many SQL queries ...
5 years, 9 months ago (2015-03-25 18:45:42 UTC) #5
brettw
I think the performance should be fine. Except for the nested select I mentioned below, ...
5 years, 9 months ago (2015-03-25 19:38:54 UTC) #7
Roger McFarlane (Chromium)
thanks. Another look? jwd@... any comment/guidance on the histogram choices (MB vs KB, for example)? ...
5 years, 9 months ago (2015-03-26 18:26:33 UTC) #8
beaudoin
LGTM with 1 nit. https://codereview.chromium.org/1032763002/diff/40001/components/history/core/browser/thumbnail_database.cc File components/history/core/browser/thumbnail_database.cc (right): https://codereview.chromium.org/1032763002/diff/40001/components/history/core/browser/thumbnail_database.cc#newcode681 components/history/core/browser/thumbnail_database.cc:681: "SELECT COUNT(*) FROM icon_mapping")); Nit: ...
5 years, 9 months ago (2015-03-26 19:36:29 UTC) #9
Roger McFarlane (Chromium)
https://codereview.chromium.org/1032763002/diff/40001/components/history/core/browser/thumbnail_database.cc File components/history/core/browser/thumbnail_database.cc (right): https://codereview.chromium.org/1032763002/diff/40001/components/history/core/browser/thumbnail_database.cc#newcode681 components/history/core/browser/thumbnail_database.cc:681: "SELECT COUNT(*) FROM icon_mapping")); On 2015/03/26 19:36:28, beaudoin wrote: ...
5 years, 9 months ago (2015-03-27 03:45:02 UTC) #10
pkotwicz
Just nits https://codereview.chromium.org/1032763002/diff/60001/components/history/core/browser/thumbnail_database.cc File components/history/core/browser/thumbnail_database.cc (right): https://codereview.chromium.org/1032763002/diff/60001/components/history/core/browser/thumbnail_database.cc#newcode652 components/history/core/browser/thumbnail_database.cc:652: // which we usually store only small ...
5 years, 9 months ago (2015-03-27 15:45:25 UTC) #12
Roger McFarlane (Chromium)
Thanks. Another look? https://codereview.chromium.org/1032763002/diff/60001/components/history/core/browser/thumbnail_database.cc File components/history/core/browser/thumbnail_database.cc (right): https://codereview.chromium.org/1032763002/diff/60001/components/history/core/browser/thumbnail_database.cc#newcode652 components/history/core/browser/thumbnail_database.cc:652: // which we usually store only ...
5 years, 8 months ago (2015-03-30 17:35:49 UTC) #14
pkotwicz
LGTM with nits https://codereview.chromium.org/1032763002/diff/100001/components/history/core/browser/thumbnail_database.cc File components/history/core/browser/thumbnail_database.cc (right): https://codereview.chromium.org/1032763002/diff/100001/components/history/core/browser/thumbnail_database.cc#newcode650 components/history/core/browser/thumbnail_database.cc:650: // Count the subset of "touch" ...
5 years, 8 months ago (2015-03-30 19:25:19 UTC) #15
Roger McFarlane (Chromium)
Thanks. jwd@: can I get an OWNERS stamp of approval for histograms.xml? sky@: can I ...
5 years, 8 months ago (2015-03-31 14:33:11 UTC) #17
jwd
https://codereview.chromium.org/1032763002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1032763002/diff/140001/tools/metrics/histograms/histograms.xml#newcode11291 tools/metrics/histograms/histograms.xml:11291: + The wall-clock time taken to gather favicon database ...
5 years, 8 months ago (2015-03-31 15:09:41 UTC) #18
Roger McFarlane (Chromium)
Thanks. https://codereview.chromium.org/1032763002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1032763002/diff/140001/tools/metrics/histograms/histograms.xml#newcode11291 tools/metrics/histograms/histograms.xml:11291: + The wall-clock time taken to gather favicon ...
5 years, 8 months ago (2015-03-31 15:35:09 UTC) #19
jwd
lgtm
5 years, 8 months ago (2015-03-31 15:36:42 UTC) #20
sky
LGTM
5 years, 8 months ago (2015-04-01 20:39:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032763002/160001
5 years, 8 months ago (2015-04-01 20:40:05 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/57610)
5 years, 8 months ago (2015-04-01 20:54:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032763002/180001
5 years, 8 months ago (2015-04-02 19:22:32 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:180001)
5 years, 8 months ago (2015-04-03 05:40:43 UTC) #30
commit-bot: I haz the power
5 years, 8 months ago (2015-04-03 20:33:23 UTC) #31
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5520a4f099d29301612bc0e660309ceece929a8a
Cr-Commit-Position: refs/heads/master@{#323647}

Powered by Google App Engine
This is Rietveld 408576698