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

Issue 1996843002: Delay PersistentHistogramAllocator creation until it's known to be used. (Closed)

Created:
4 years, 7 months ago by bcwhite
Modified:
4 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, 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

Delay PersistentHistogramAllocator creation until it's known to be used. Roughly 25 histograms get created before the allocator is created in the field-trial setup but these are generally information about initialization activities that are reported quickly. Nothing is generally lost should the browser crash without these being persistent. BUG=612470 TBR=pfeldman pfeldman: moved code out of browser_main_runner Committed: https://crrev.com/374d5fe463635dd811d452649b34c6efc578f860 Cr-Commit-Position: refs/heads/master@{#395101}

Patch Set 1 #

Patch Set 2 : removed PHA enable/disable code that is no longer used #

Total comments: 4

Patch Set 3 : addressed review comments by Alexei #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -86 lines) Patch
M base/metrics/persistent_histogram_allocator.h View 1 2 chunks +6 lines, -18 lines 0 comments Download
M base/metrics/persistent_histogram_allocator.cc View 1 5 chunks +0 lines, -21 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials.cc View 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 5 chunks +16 lines, -33 lines 0 comments Download
M content/browser/browser_main_runner.cc View 2 chunks +0 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
bcwhite
4 years, 7 months ago (2016-05-20 13:17:58 UTC) #2
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1996843002/diff/20001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/1996843002/diff/20001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode186 chrome/browser/metrics/chrome_metrics_service_client.cc:186: // The name of the metrics allocator for ...
4 years, 7 months ago (2016-05-20 14:55:24 UTC) #4
bcwhite
https://codereview.chromium.org/1996843002/diff/20001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/1996843002/diff/20001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode186 chrome/browser/metrics/chrome_metrics_service_client.cc:186: // The name of the metrics allocator for the ...
4 years, 7 months ago (2016-05-20 16:01:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996843002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996843002/40001
4 years, 7 months ago (2016-05-20 16:58:59 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-20 17:03:34 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 17:05:23 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/374d5fe463635dd811d452649b34c6efc578f860
Cr-Commit-Position: refs/heads/master@{#395101}

Powered by Google App Engine
This is Rietveld 408576698