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

Issue 2383063003: Add UMA metrics for the time it takes to read store from disk and apply update (Closed)

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

Description

Add UMA metrics for the time it takes to read store from disk and apply update BUG=651911, 543161 Committed: https://crrev.com/8ccfe9a0fb1404e2d09d39010744a7f58458848d Cr-Commit-Position: refs/heads/master@{#422968}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Also log per store UMA metrics for time. Detailed explanation of histograms. Other minor changes. #

Patch Set 3 : Refactored histogram comments #

Patch Set 4 : Use base::StringPrintf to generate the partial histogram name. Thanks Windows! #

Total comments: 4

Patch Set 5 : Reduce the max value and increase the number of buckets in histogram. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -24 lines) Patch
M chrome/browser/safe_browsing/local_database_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/safe_browsing_db/v4_store.h View 1 2 chunks +6 lines, -6 lines 0 comments Download
M components/safe_browsing_db/v4_store.cc View 1 2 3 4 11 chunks +100 lines, -13 lines 0 comments Download
M components/safe_browsing_db/v4_store_unittest.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 4 chunks +66 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 50 (33 generated)
vakh (use Gerrit instead)
4 years, 2 months ago (2016-09-30 19:55:26 UTC) #4
vakh (use Gerrit instead)
rkaplow@: Please review the changes in histograms.xml
4 years, 2 months ago (2016-09-30 19:57:51 UTC) #6
Nathan Parker
https://codereview.chromium.org/2383063003/diff/1/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2383063003/diff/1/components/safe_browsing_db/v4_store.cc#newcode26 components/safe_browsing_db/v4_store.cc:26: void RecordAddUnlumpedHashesTime(base::TimeDelta time) { style nit: Personally I think ...
4 years, 2 months ago (2016-09-30 22:32:05 UTC) #9
vakh (use Gerrit instead)
Also log per store UMA metrics for time. Detailed explanation of histograms. Other minor changes.
4 years, 2 months ago (2016-10-03 21:17:33 UTC) #10
vakh (use Gerrit instead)
Refactored histogram comments
4 years, 2 months ago (2016-10-03 21:30:11 UTC) #13
vakh (use Gerrit instead)
Thanks, PTAL. https://codereview.chromium.org/2383063003/diff/1/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2383063003/diff/1/components/safe_browsing_db/v4_store.cc#newcode26 components/safe_browsing_db/v4_store.cc:26: void RecordAddUnlumpedHashesTime(base::TimeDelta time) { On 2016/09/30 22:32:05, ...
4 years, 2 months ago (2016-10-03 21:30:37 UTC) #15
vakh (use Gerrit instead)
Use StringType otherwise Windows builds fail
4 years, 2 months ago (2016-10-03 22:10:01 UTC) #19
vakh (use Gerrit instead)
Use StringType with FILE_PATH_LITERAL
4 years, 2 months ago (2016-10-03 22:49:48 UTC) #24
vakh (use Gerrit instead)
Use StringType with FILE_PATH_LITERAL
4 years, 2 months ago (2016-10-03 22:50:48 UTC) #27
vakh (use Gerrit instead)
Use base::StringPrintf to generate the partial histogram name. Thanks Windows!
4 years, 2 months ago (2016-10-04 16:28:04 UTC) #33
rkaplow
lgtm
4 years, 2 months ago (2016-10-04 17:09:55 UTC) #38
Nathan Parker
lgtm https://codereview.chromium.org/2383063003/diff/120001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2383063003/diff/120001/components/safe_browsing_db/v4_store.cc#newcode31 components/safe_browsing_db/v4_store.cc:31: ".%" PRIsFP, file_path.BaseName().RemoveExtension().value().c_str()); [no action required] Is this ...
4 years, 2 months ago (2016-10-04 20:30:44 UTC) #41
vakh (use Gerrit instead)
https://codereview.chromium.org/2383063003/diff/120001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2383063003/diff/120001/components/safe_browsing_db/v4_store.cc#newcode31 components/safe_browsing_db/v4_store.cc:31: ".%" PRIsFP, file_path.BaseName().RemoveExtension().value().c_str()); On 2016/10/04 20:30:43, Nathan Parker wrote: ...
4 years, 2 months ago (2016-10-04 21:05:15 UTC) #42
vakh (use Gerrit instead)
Reduce the max value and increase the number of buckets in histogram.
4 years, 2 months ago (2016-10-04 21:09:33 UTC) #43
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/2383063003/140001
4 years, 2 months ago (2016-10-04 21:10:37 UTC) #47
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 2 months ago (2016-10-04 22:25:45 UTC) #48
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 22:28:01 UTC) #50
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8ccfe9a0fb1404e2d09d39010744a7f58458848d
Cr-Commit-Position: refs/heads/master@{#422968}

Powered by Google App Engine
This is Rietveld 408576698