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

Issue 2409793002: Add detailed UMA metrics for v4_store, broken down by storeid. (Closed)

Created:
4 years, 2 months ago by vakh (use Gerrit instead)
Modified:
4 years, 2 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add detailed UMA metrics for v4_store, broken down by storeid. BUG=651911, 543161 TBR=nparker Committed: https://crrev.com/36a98c5d86965c361330863904c19435e278a4c0 Cr-Commit-Position: refs/heads/master@{#424946}

Patch Set 1 #

Patch Set 2 : git pull #

Total comments: 11

Patch Set 3 : nparker@ review #

Patch Set 4 : Mark old histograms as obsolete instead of deleting them #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -83 lines) Patch
M components/safe_browsing_db/v4_store.h View 2 chunks +15 lines, -5 lines 0 comments Download
M components/safe_browsing_db/v4_store.cc View 1 2 15 chunks +110 lines, -76 lines 2 comments Download
M components/safe_browsing_db/v4_store_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 13 chunks +232 lines, -0 lines 2 comments Download

Messages

Total messages: 41 (22 generated)
vakh (use Gerrit instead)
4 years, 2 months ago (2016-10-10 21:09:40 UTC) #4
vakh (use Gerrit instead)
4 years, 2 months ago (2016-10-10 21:12:32 UTC) #6
vakh (use Gerrit instead)
git pull
4 years, 2 months ago (2016-10-10 21:17:27 UTC) #9
Steven Holte
https://codereview.chromium.org/2409793002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2409793002/diff/20001/tools/metrics/histograms/histograms.xml#oldcode51211 tools/metrics/histograms/histograms.xml:51211: -<histogram name="SafeBrowsing.V4DecodeAdditionsResult" Don't remove the old histogram descriptions, since ...
4 years, 2 months ago (2016-10-10 22:04:29 UTC) #12
vakh (use Gerrit instead)
https://codereview.chromium.org/2409793002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2409793002/diff/20001/tools/metrics/histograms/histograms.xml#oldcode51211 tools/metrics/histograms/histograms.xml:51211: -<histogram name="SafeBrowsing.V4DecodeAdditionsResult" On 2016/10/10 22:04:28, Steven Holte wrote: > ...
4 years, 2 months ago (2016-10-10 22:16:00 UTC) #13
Nathan Parker
Have you tested this by checking chrome://histograms to ensure it all looks as you expect? ...
4 years, 2 months ago (2016-10-11 20:51:48 UTC) #16
vakh (use Gerrit instead)
https://codereview.chromium.org/2409793002/diff/20001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2409793002/diff/20001/components/safe_browsing_db/v4_store.cc#newcode26 components/safe_browsing_db/v4_store.cc:26: const char kDecodeAdditions[] = ".DecodeAdditions"; On 2016/10/11 20:51:48, Nathan ...
4 years, 2 months ago (2016-10-11 23:08:05 UTC) #17
vakh (use Gerrit instead)
nparker@ review
4 years, 2 months ago (2016-10-11 23:08:24 UTC) #18
vakh (use Gerrit instead)
On 2016/10/11 20:51:48, Nathan Parker wrote: > Have you tested this by checking chrome://histograms to ...
4 years, 2 months ago (2016-10-11 23:12:49 UTC) #21
Steven Holte
https://codereview.chromium.org/2409793002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2409793002/diff/20001/tools/metrics/histograms/histograms.xml#oldcode51211 tools/metrics/histograms/histograms.xml:51211: -<histogram name="SafeBrowsing.V4DecodeAdditionsResult" On 2016/10/10 22:15:59, vakh (Varun Khaneja) wrote: ...
4 years, 2 months ago (2016-10-12 01:03:48 UTC) #24
vakh (use Gerrit instead)
Mark old histograms as obsolete instead of deleting them
4 years, 2 months ago (2016-10-12 21:56:56 UTC) #25
vakh (use Gerrit instead)
On 2016/10/12 01:03:48, Steven Holte wrote: > https://codereview.chromium.org/2409793002/diff/20001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (left): > > https://codereview.chromium.org/2409793002/diff/20001/tools/metrics/histograms/histograms.xml#oldcode51211 ...
4 years, 2 months ago (2016-10-12 21:58:01 UTC) #28
Steven Holte
histograms lgtm
4 years, 2 months ago (2016-10-12 22:31:38 UTC) #29
vakh (use Gerrit instead)
Thanks holte@ Submitting this with TBR=nparker since I've addressed his comments and 3 of my ...
4 years, 2 months ago (2016-10-13 03:15:21 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2409793002/60001
4 years, 2 months ago (2016-10-13 03:15:41 UTC) #35
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-13 03:21:55 UTC) #37
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/36a98c5d86965c361330863904c19435e278a4c0 Cr-Commit-Position: refs/heads/master@{#424946}
4 years, 2 months ago (2016-10-13 03:24:51 UTC) #39
Nathan Parker
lgtm Sorry for the delay. I'll LGTM, but I think the histograms.xml needs a fix. ...
4 years, 2 months ago (2016-10-14 20:48:33 UTC) #40
vakh (use Gerrit instead)
4 years, 2 months ago (2016-10-15 00:09:04 UTC) #41
Message was sent while issue was closed.
See: https://codereview.chromium.org/2423523003

https://codereview.chromium.org/2409793002/diff/60001/components/safe_browsin...
File components/safe_browsing_db/v4_store.cc (right):

https://codereview.chromium.org/2409793002/diff/60001/components/safe_browsin...
components/safe_browsing_db/v4_store.cc:40: // in order, from parts 1, 2, and 3.
On 2016/10/14 20:48:32, Nathan Parker wrote:
> nit: You're missing part 2.5, which is the store name.

Done.

https://codereview.chromium.org/2409793002/diff/60001/tools/metrics/histogram...
File tools/metrics/histograms/histograms.xml (right):

https://codereview.chromium.org/2409793002/diff/60001/tools/metrics/histogram...
tools/metrics/histograms/histograms.xml:51510: +<histogram
name="SafeBrowsing.V4StoreRead.Result"
On 2016/10/14 20:48:33, Nathan Parker wrote:
> I think all the .Result and .Time metrics need to be expanded by the list of
> store names, ya? We should add a comment to the list of store names in the .cc
> to remember to update the histograms.
> 
> You should be able to accomplish this with  <histogram_suffixes ..
separator="."
> ordering="prefix"> (I think...)

When using ordering="prefix", it adds the specified suffix after the first
period character in the histogram name so that wouldn't have worked for us. See:
https://cs.chromium.org/chromium/src/tools/metrics/actions/action_utils.py?q=...

I've added the histograms manually. See:
https://codereview.chromium.org/2423523003

Powered by Google App Engine
This is Rietveld 408576698