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

Issue 2447443002: Log the size of each of the stores and complete DB on launch and after each (Closed)

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

Description

Log the size of each of the stores and complete DB on launch and after each update. See: https://screenshot.googleplex.com/HFnJ5zLQwwo TBR=holte BUG=543161 Committed: https://crrev.com/8ca75275c18c22b084ac44fdfd4247f983b09809 Cr-Commit-Position: refs/heads/master@{#428093}

Patch Set 1 #

Patch Set 2 : Add to histograms.xml #

Total comments: 12

Patch Set 3 : shess@'s review #

Total comments: 7

Patch Set 4 : Use int64_t consistently. Undo changes outside v4 #

Patch Set 5 : git rebase #

Total comments: 4

Patch Set 6 : nparker@'s review #

Patch Set 7 : Nit: clarify comment #

Patch Set 8 : git rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -10 lines) Patch
M components/safe_browsing_db/v4_database.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_database.cc View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_store.h View 1 2 3 4 5 6 4 chunks +18 lines, -5 lines 0 comments Download
M components/safe_browsing_db/v4_store.cc View 1 2 3 8 chunks +30 lines, -5 lines 0 comments Download
M components/safe_browsing_db/v4_store_unittest.cc View 1 2 3 4 5 5 chunks +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (33 generated)
vakh (use Gerrit instead)
Add to histograms.xml
4 years, 2 months ago (2016-10-21 22:25:17 UTC) #3
vakh (use Gerrit instead)
4 years, 2 months ago (2016-10-21 22:29:06 UTC) #8
Scott Hess - ex-Googler
A meta-concern is that since this will be getting updated periodically, and there are users ...
4 years, 2 months ago (2016-10-21 23:36:45 UTC) #9
vakh (use Gerrit instead)
shess@'s review
4 years, 1 month ago (2016-10-24 19:37:11 UTC) #12
vakh (use Gerrit instead)
On 2016/10/21 23:36:45, Scott Hess wrote: > A meta-concern is that since this will be ...
4 years, 1 month ago (2016-10-24 19:39:25 UTC) #15
vakh (use Gerrit instead)
https://codereview.chromium.org/2447443002/diff/20001/components/safe_browsing_db/v4_database.cc File components/safe_browsing_db/v4_database.cc (right): https://codereview.chromium.org/2447443002/diff/20001/components/safe_browsing_db/v4_database.cc#newcode225 components/safe_browsing_db/v4_database.cc:225: int db_size = 0; On 2016/10/21 23:36:45, Scott Hess ...
4 years, 1 month ago (2016-10-24 19:39:32 UTC) #16
Scott Hess - ex-Googler
Hmm - now the member storage is uint64_t, but some code uses int64_t, and other ...
4 years, 1 month ago (2016-10-24 20:00:03 UTC) #17
Scott Hess - ex-Googler
On 2016/10/24 20:00:03, Scott Hess wrote: > [Sorry to be so bothersome. If one bit ...
4 years, 1 month ago (2016-10-24 20:01:35 UTC) #18
Nathan Parker
https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_protocol_manager_util.h File components/safe_browsing_db/v4_protocol_manager_util.h (right): https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_protocol_manager_util.h#newcode270 components/safe_browsing_db/v4_protocol_manager_util.h:270: static int64_t GetFileSizeOrZero(const base::FilePath& file_path); Are you using this ...
4 years, 1 month ago (2016-10-24 20:33:55 UTC) #21
vakh (use Gerrit instead)
https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_store.h File components/safe_browsing_db/v4_store.h (right): https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_store.h#newcode166 components/safe_browsing_db/v4_store.h:166: const uint64_t old_file_size = 0); On 2016/10/24 20:33:55, Nathan ...
4 years, 1 month ago (2016-10-24 21:32:42 UTC) #22
vakh (use Gerrit instead)
Use int64_t consistently. Undo changes outside v4
4 years, 1 month ago (2016-10-24 21:53:44 UTC) #23
vakh (use Gerrit instead)
https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_protocol_manager_util.h File components/safe_browsing_db/v4_protocol_manager_util.h (right): https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_protocol_manager_util.h#newcode270 components/safe_browsing_db/v4_protocol_manager_util.h:270: static int64_t GetFileSizeOrZero(const base::FilePath& file_path); On 2016/10/24 20:33:54, Nathan ...
4 years, 1 month ago (2016-10-24 22:04:51 UTC) #24
Scott Hess - ex-Googler
https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_store.cc#newcode851 components/safe_browsing_db/v4_store.cc:851: base_metric + suffix, 1, 1000000, 50, On 2016/10/24 22:04:51, ...
4 years, 1 month ago (2016-10-24 22:11:38 UTC) #25
vakh (use Gerrit instead)
On 2016/10/24 22:11:38, Scott Hess wrote: > https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_store.cc > File components/safe_browsing_db/v4_store.cc (right): > > https://codereview.chromium.org/2447443002/diff/40001/components/safe_browsing_db/v4_store.cc#newcode851 ...
4 years, 1 month ago (2016-10-24 22:28:46 UTC) #26
vakh (use Gerrit instead)
git rebase
4 years, 1 month ago (2016-10-25 12:23:20 UTC) #27
vakh (use Gerrit instead)
holte@ -- please review the changes in histograms.xml
4 years, 1 month ago (2016-10-25 17:18:48 UTC) #33
Nathan Parker
lgtm https://codereview.chromium.org/2447443002/diff/80001/components/safe_browsing_db/v4_store.h File components/safe_browsing_db/v4_store.h (right): https://codereview.chromium.org/2447443002/diff/80001/components/safe_browsing_db/v4_store.h#newcode163 components/safe_browsing_db/v4_store.h:163: // 0 otherwise. Add something like "old_file_size is ...
4 years, 1 month ago (2016-10-25 19:01:44 UTC) #34
vakh (use Gerrit instead)
https://codereview.chromium.org/2447443002/diff/80001/components/safe_browsing_db/v4_store.h File components/safe_browsing_db/v4_store.h (right): https://codereview.chromium.org/2447443002/diff/80001/components/safe_browsing_db/v4_store.h#newcode163 components/safe_browsing_db/v4_store.h:163: // 0 otherwise. On 2016/10/25 19:01:44, Nathan Parker wrote: ...
4 years, 1 month ago (2016-10-25 19:12:35 UTC) #35
vakh (use Gerrit instead)
nparker@'s review
4 years, 1 month ago (2016-10-25 19:12:46 UTC) #36
vakh (use Gerrit instead)
Nit: clarify comment
4 years, 1 month ago (2016-10-25 19:27:16 UTC) #39
vakh (use Gerrit instead)
holte@ -- please review the small change in histograms.xml (one histogram added). Thanks.
4 years, 1 month ago (2016-10-26 23:46:17 UTC) #44
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/2447443002/120001
4 years, 1 month ago (2016-10-27 17:28:08 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/250035) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-10-27 17:31:13 UTC) #50
vakh (use Gerrit instead)
git rebase
4 years, 1 month ago (2016-10-27 17:34:54 UTC) #51
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-10-27 18:46:09 UTC) #57
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 19:01:49 UTC) #59
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8ca75275c18c22b084ac44fdfd4247f983b09809
Cr-Commit-Position: refs/heads/master@{#428093}

Powered by Google App Engine
This is Rietveld 408576698