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

Issue 2490513004: Bump field trial allocator size to 64kb and report usage (Closed)

Created:
4 years, 1 month ago by lawrencewu
Modified:
4 years, 1 month ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bump field trial allocator size to 64kb and report usage This CL changes the size of the shared memory used by the field trial allocator to 64kb from 4kb, since 4kb was too small and was causing crashes. It also now correctly reports the used size of the allocator in a histogram. BUG=663415 Committed: https://crrev.com/29e9989bdde19978fc9e7b92b1c762f99d8b2cd5 Cr-Commit-Position: refs/heads/master@{#431071}

Patch Set 1 #

Patch Set 2 : Bump field trial allocator size and report usage #

Total comments: 3

Patch Set 3 : Create new histogram and add comment #

Patch Set 4 : move ifdef #

Patch Set 5 : Add ifdef for unused variable #

Total comments: 16

Patch Set 6 : address comments #

Patch Set 7 : remove unnecessary include #

Total comments: 2

Patch Set 8 : add comment for activated field #

Total comments: 2

Patch Set 9 : do !field_trial->ref_ #

Patch Set 10 : whoops, should be field_trial->ref_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -8 lines) Patch
M base/metrics/field_trial.cc View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (31 generated)
lawrencewu
initial CL
4 years, 1 month ago (2016-11-08 18:09:01 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/2490513004/diff/20001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (left): https://codereview.chromium.org/2490513004/diff/20001/base/metrics/field_trial.cc#oldcode731 base/metrics/field_trial.cc:731: UMA_HISTOGRAM_COUNTS_10000("UMA.FieldTrialAllocator.Size", Changing the macro without changing histogram name is ...
4 years, 1 month ago (2016-11-08 18:15:23 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/2490513004/diff/20001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (left): https://codereview.chromium.org/2490513004/diff/20001/base/metrics/field_trial.cc#oldcode731 base/metrics/field_trial.cc:731: UMA_HISTOGRAM_COUNTS_10000("UMA.FieldTrialAllocator.Size", On 2016/11/08 18:15:23, Alexei Svitkine (very slow) wrote: ...
4 years, 1 month ago (2016-11-08 18:18:39 UTC) #5
lawrencewu
Changed the histogram name to "Used" and created "UsedPct". Also expanded on comment for kFieldTrialAllocatorSize.
4 years, 1 month ago (2016-11-08 19:01:28 UTC) #9
Alexei Svitkine (slow)
lgtm, thanks!
4 years, 1 month ago (2016-11-08 19:04:10 UTC) #10
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/2490513004/80001
4 years, 1 month ago (2016-11-08 19:43:41 UTC) #19
bcwhite
https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc#newcode51 base/metrics/field_trial.cc:51: const size_t kFieldTrialAllocationSize = 4 << 14; Please do ...
4 years, 1 month ago (2016-11-08 20:14:33 UTC) #21
bcwhite
https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc#newcode45 base/metrics/field_trial.cc:45: const uint32_t kFieldTrialType = 0xABA17E13 + 1; // SHA1(FieldTrialEntry) ...
4 years, 1 month ago (2016-11-08 20:30:02 UTC) #22
lawrencewu
Address comments. https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc#newcode45 base/metrics/field_trial.cc:45: const uint32_t kFieldTrialType = 0xABA17E13 + 1; ...
4 years, 1 month ago (2016-11-09 18:06:46 UTC) #28
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2490513004/diff/120001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2490513004/diff/120001/base/metrics/field_trial.cc#newcode63 base/metrics/field_trial.cc:63: uint32_t activated; Please add a comment above this ...
4 years, 1 month ago (2016-11-09 18:14:27 UTC) #29
lawrencewu
add comment https://codereview.chromium.org/2490513004/diff/120001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2490513004/diff/120001/base/metrics/field_trial.cc#newcode63 base/metrics/field_trial.cc:63: uint32_t activated; On 2016/11/09 18:14:27, Alexei Svitkine ...
4 years, 1 month ago (2016-11-09 18:20:48 UTC) #30
bcwhite
lgtm https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc#newcode744 base/metrics/field_trial.cc:744: ReportFieldTrialAllocatorUsage(global_->field_trial_allocator_.get()); On 2016/11/09 18:06:46, lawrencewu wrote: > On ...
4 years, 1 month ago (2016-11-09 18:57:37 UTC) #31
lawrencewu
Address comments. https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2490513004/diff/80001/base/metrics/field_trial.cc#newcode744 base/metrics/field_trial.cc:744: ReportFieldTrialAllocatorUsage(global_->field_trial_allocator_.get()); On 2016/11/09 18:57:37, bcwhite wrote: > ...
4 years, 1 month ago (2016-11-09 19:15:00 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/2490513004/180001
4 years, 1 month ago (2016-11-09 23:02:50 UTC) #43
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-11-09 23:09:21 UTC) #45
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 23:15:59 UTC) #47
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/29e9989bdde19978fc9e7b92b1c762f99d8b2cd5
Cr-Commit-Position: refs/heads/master@{#431071}

Powered by Google App Engine
This is Rietveld 408576698