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

Issue 10779040: Initialize StatisticsRecorder in Child Process to hold (Closed)

Created:
8 years, 5 months ago by ramant (doing other things)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Initialize StatisticsRecorder in Child Process to hold all histograms in child processes. Made StatisticsRecorder a leaky lazy singleton. R=jar@chromium.org, jam@chromium.org BUG=114013 TEST=renderer histograms should still work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147501

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -33 lines) Patch
M base/metrics/histogram_unittest.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -7 lines 0 comments Download
M base/metrics/statistics_recorder.h View 1 2 3 4 5 6 7 4 chunks +17 lines, -4 lines 0 comments Download
M base/metrics/statistics_recorder.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_application_mac_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/net/http_pipelining_compatibility_client_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome_frame/metrics_service.cc View 1 2 3 4 2 chunks +1 line, -6 lines 0 comments Download
M content/browser/browser_main_runner.cc View 1 2 3 4 3 chunks +1 line, -4 lines 0 comments Download
M content/common/child_process.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download
M net/base/run_all_unittests.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M net/curvecp/curvecp_transfer_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
ramant (doing other things)
Hi Jim and John Abd-El-Malek, Small change to initialize histogram statistics gathering system in all ...
8 years, 5 months ago (2012-07-18 01:13:31 UTC) #1
jam
lgtm http://codereview.chromium.org/10779040/diff/17001/content/common/child_process.cc File content/common/child_process.cc (right): http://codereview.chromium.org/10779040/diff/17001/content/common/child_process.cc#newcode60 content/common/child_process.cc:60: statistics_recorder_.reset(); nit: is this necessary? if not, leave ...
8 years, 5 months ago (2012-07-18 01:22:01 UTC) #2
ramant (doing other things)
Hi Jim and John Abd-El-Malek, Made StatisticsRecorder a leaky lazy singleton instance (per discussion with ...
8 years, 5 months ago (2012-07-18 03:20:32 UTC) #3
jam
http://codereview.chromium.org/10779040/diff/20009/base/metrics/statistics_recorder.h File base/metrics/statistics_recorder.h (right): http://codereview.chromium.org/10779040/diff/20009/base/metrics/statistics_recorder.h#newcode30 base/metrics/statistics_recorder.h:30: StatisticsRecorder(); if it's a singleton, then the constructor and ...
8 years, 5 months ago (2012-07-18 05:14:16 UTC) #4
jar (doing other things)
http://codereview.chromium.org/10779040/diff/20009/base/metrics/statistics_recorder.h File base/metrics/statistics_recorder.h (right): http://codereview.chromium.org/10779040/diff/20009/base/metrics/statistics_recorder.h#newcode30 base/metrics/statistics_recorder.h:30: StatisticsRecorder(); I think this was done to facilitate testability. ...
8 years, 5 months ago (2012-07-18 16:00:01 UTC) #5
jam
http://codereview.chromium.org/10779040/diff/20009/base/metrics/statistics_recorder.h File base/metrics/statistics_recorder.h (right): http://codereview.chromium.org/10779040/diff/20009/base/metrics/statistics_recorder.h#newcode30 base/metrics/statistics_recorder.h:30: StatisticsRecorder(); On 2012/07/18 16:00:01, jar wrote: > I think ...
8 years, 5 months ago (2012-07-18 16:36:11 UTC) #6
ramant (doing other things)
Made StatisticsRecorder's constructor and destructor private and added FRIEND_TEST for histogram_unittest (which was testing StatisticsRecorder). ...
8 years, 5 months ago (2012-07-18 18:54:34 UTC) #7
jam
lgtm
8 years, 5 months ago (2012-07-19 07:59:01 UTC) #8
jar (doing other things)
lgtm
8 years, 5 months ago (2012-07-19 17:30:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/10779040/26004
8 years, 5 months ago (2012-07-19 17:31:07 UTC) #10
commit-bot: I haz the power
8 years, 5 months ago (2012-07-19 19:17:34 UTC) #11
Change committed as 147501

Powered by Google App Engine
This is Rietveld 408576698