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

Issue 2082653003: Log predictor database size on startup (Closed)

Created:
4 years, 6 months ago by Charlie Harrison
Modified:
4 years, 6 months ago
Reviewers:
mmenke, Steven Holte
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Log predictor database size on startup This patch adds UMA about the predictor's database size when it is first initialized. This will track cases when the pref writing policy fails due to unclean shutdown. Additionally, the metric will be useful for determining how much of a memory hog the predictor is, with its opaque trimming mechanism. BUG=620466 Committed: https://crrev.com/d0da3d1035c13406324b7037a7138790b783e8f5 Cr-Commit-Position: refs/heads/master@{#400884}

Patch Set 1 #

Total comments: 8

Patch Set 2 : mmenke@ review #

Total comments: 2

Patch Set 3 : Update histogram desc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
M chrome/browser/net/predictor.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/net/predictor.cc View 1 2 chunks +17 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
Charlie Harrison
mmenke@, here's the initial patch to add bytes used by the predictor at startup. I ...
4 years, 6 months ago (2016-06-20 16:43:48 UTC) #2
mmenke
LGTM https://codereview.chromium.org/2082653003/diff/1/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/2082653003/diff/1/chrome/browser/net/predictor.cc#newcode1180 chrome/browser/net/predictor.cc:1180: total_bytes += referrer.first.spec().size(); Could optionally add in in ...
4 years, 6 months ago (2016-06-20 17:01:24 UTC) #3
Charlie Harrison
Thanks! holte@, could you look at histograms.xml please? https://codereview.chromium.org/2082653003/diff/1/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/2082653003/diff/1/chrome/browser/net/predictor.cc#newcode1180 chrome/browser/net/predictor.cc:1180: total_bytes ...
4 years, 6 months ago (2016-06-20 17:26:37 UTC) #4
mmenke
https://codereview.chromium.org/2082653003/diff/1/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/2082653003/diff/1/chrome/browser/net/predictor.cc#newcode1180 chrome/browser/net/predictor.cc:1180: total_bytes += referrer.first.spec().size(); On 2016/06/20 17:26:37, csharrison wrote: > ...
4 years, 6 months ago (2016-06-20 17:33:52 UTC) #5
Charlie Harrison
https://codereview.chromium.org/2082653003/diff/1/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/2082653003/diff/1/chrome/browser/net/predictor.cc#newcode1180 chrome/browser/net/predictor.cc:1180: total_bytes += referrer.first.spec().size(); On 2016/06/20 17:33:52, mmenke wrote: > ...
4 years, 6 months ago (2016-06-20 17:35:13 UTC) #6
mmenke
https://codereview.chromium.org/2082653003/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2082653003/diff/20001/tools/metrics/histograms/histograms.xml#newcode28416 tools/metrics/histograms/histograms.xml:28416: + <summary>The size in bytes of the predictor's database ...
4 years, 6 months ago (2016-06-20 18:03:17 UTC) #7
Charlie Harrison
https://codereview.chromium.org/2082653003/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2082653003/diff/20001/tools/metrics/histograms/histograms.xml#newcode28416 tools/metrics/histograms/histograms.xml:28416: + <summary>The size in bytes of the predictor's database ...
4 years, 6 months ago (2016-06-20 19:30:37 UTC) #8
Steven Holte
lgtm
4 years, 6 months ago (2016-06-20 22:12:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2082653003/40001
4 years, 6 months ago (2016-06-21 02:14:09 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-21 03:40:56 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 03:42:25 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d0da3d1035c13406324b7037a7138790b783e8f5
Cr-Commit-Position: refs/heads/master@{#400884}

Powered by Google App Engine
This is Rietveld 408576698