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

Issue 891663003: Log pref file size histogram on read rather than on write. (Closed)

Created:
5 years, 10 months ago by gab
Modified:
5 years, 10 months ago
CC:
chromium-reviews, erikwright+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 pref file size histogram on read rather than on write. All we care about is the size of the file per user, logging it on write was wrong as it would generate WAY too many reports as indicated by issue 453454. Also changed the distribution to be logarithmic rather than linear to give better insights (with a linear distribution all we could see was that most people were below 209KB but we didn't have finer buckets below that). BUG=453454, 355722 Committed: https://crrev.com/f16b59a08d0a0d8587cd968084a75f6e30799787 Cr-Commit-Position: refs/heads/master@{#314064}

Patch Set 1 #

Total comments: 11

Patch Set 2 : nits #

Patch Set 3 : out-of-line constructor #

Total comments: 1

Patch Set 4 : histograms back in JsonPrefStore impl #

Total comments: 4

Patch Set 5 : nits / format / only log on successful read #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -27 lines) Patch
M base/json/json_file_value_serializer.h View 1 2 3 4 2 chunks +9 lines, -6 lines 0 comments Download
M base/json/json_file_value_serializer.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M base/prefs/json_pref_store.cc View 1 2 3 4 3 chunks +21 lines, -21 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
gab
Alexei PTAL. Thanks for reporting this issue! Gab https://codereview.chromium.org/891663003/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/891663003/diff/1/tools/metrics/histograms/histograms.xml#newcode32557 tools/metrics/histograms/histograms.xml:32557: + ...
5 years, 10 months ago (2015-01-30 13:25:27 UTC) #2
Alexei Svitkine (slow)
Thanks for cleaning this up! I agree the read histogram should be more useful and ...
5 years, 10 months ago (2015-01-30 13:49:03 UTC) #3
gab
Thanks, PTAL. https://codereview.chromium.org/891663003/diff/1/base/json/json_file_value_serializer.cc File base/json/json_file_value_serializer.cc (right): https://codereview.chromium.org/891663003/diff/1/base/json/json_file_value_serializer.cc#newcode70 base/json/json_file_value_serializer.cc:70: "Settings.JsonDataSizeKilobytes." + histogram_suffix_, On 2015/01/30 13:49:03, Alexei ...
5 years, 10 months ago (2015-01-30 17:33:37 UTC) #4
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/891663003/diff/1/base/json/json_file_value_serializer.h File base/json/json_file_value_serializer.h (right): https://codereview.chromium.org/891663003/diff/1/base/json/json_file_value_serializer.h#newcode31 base/json/json_file_value_serializer.h:31: histogram_suffix_(histogram_suffix) {} On 2015/01/30 17:33:37, gab wrote: > ...
5 years, 10 months ago (2015-01-30 17:41:16 UTC) #5
gab
Thanks, @Nico as base/json owner. https://codereview.chromium.org/891663003/diff/1/base/json/json_file_value_serializer.h File base/json/json_file_value_serializer.h (right): https://codereview.chromium.org/891663003/diff/1/base/json/json_file_value_serializer.h#newcode31 base/json/json_file_value_serializer.h:31: histogram_suffix_(histogram_suffix) {} On 2015/01/30 ...
5 years, 10 months ago (2015-01-30 18:22:35 UTC) #7
Nico
https://codereview.chromium.org/891663003/diff/40001/base/json/json_file_value_serializer.h File base/json/json_file_value_serializer.h (right): https://codereview.chromium.org/891663003/diff/40001/base/json/json_file_value_serializer.h#newcode25 base/json/json_file_value_serializer.h:25: const std::string& histogram_suffix); Why does a json library need ...
5 years, 10 months ago (2015-01-30 18:46:28 UTC) #8
Alexei Svitkine (slow)
Good point, Nico! Maybe we could have the class have a getter to return how ...
5 years, 10 months ago (2015-01-30 19:06:34 UTC) #9
gab
On 2015/01/30 19:06:34, Alexei Svitkine wrote: > Good point, Nico! > > Maybe we could ...
5 years, 10 months ago (2015-01-30 19:19:38 UTC) #10
Nico
(the above sounds good to me, fwiw) On Fri, Jan 30, 2015 at 11:19 AM, ...
5 years, 10 months ago (2015-01-30 19:34:00 UTC) #11
Alexei Svitkine (slow)
get_last_read_size() sgtm too On Fri, Jan 30, 2015 at 2:33 PM, Nico Weber <thakis@chromium.org> wrote: ...
5 years, 10 months ago (2015-01-30 19:55:00 UTC) #12
gab
Modified as discussed, PTAL. Thanks, Gab
5 years, 10 months ago (2015-01-30 20:41:17 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/891663003/diff/80001/base/json/json_file_value_serializer.h File base/json/json_file_value_serializer.h (right): https://codereview.chromium.org/891663003/diff/80001/base/json/json_file_value_serializer.h#newcode73 base/json/json_file_value_serializer.h:73: // |Deserialize()| call. Looks like you're only updating the ...
5 years, 10 months ago (2015-01-30 20:46:32 UTC) #15
Nico
base/json lgtm
5 years, 10 months ago (2015-01-30 20:55:03 UTC) #16
gab
Thanks, done. https://codereview.chromium.org/891663003/diff/80001/base/json/json_file_value_serializer.h File base/json/json_file_value_serializer.h (right): https://codereview.chromium.org/891663003/diff/80001/base/json/json_file_value_serializer.h#newcode73 base/json/json_file_value_serializer.h:73: // |Deserialize()| call. On 2015/01/30 20:46:32, Alexei ...
5 years, 10 months ago (2015-01-31 16:46:56 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/891663003/100001
5 years, 10 months ago (2015-01-31 16:47:48 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 10 months ago (2015-01-31 19:09:33 UTC) #20
commit-bot: I haz the power
5 years, 10 months ago (2015-01-31 19:10:27 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f16b59a08d0a0d8587cd968084a75f6e30799787
Cr-Commit-Position: refs/heads/master@{#314064}

Powered by Google App Engine
This is Rietveld 408576698