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

Issue 1779503002: Fix StatisticsRecorder to handle re-entry during tests. (Closed)

Created:
4 years, 9 months ago by bcwhite
Modified:
4 years, 8 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix StatisticsRecorder to handle re-entry during tests. BUG=592747 Committed: https://crrev.com/b113b974a0cc071bd9822b499975307529eac294 Cr-Commit-Position: refs/heads/master@{#386119}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix other test-order problems #

Patch Set 3 : use scoped_ptr for statistics-recorder where possible #

Patch Set 4 : rebased #

Total comments: 2

Patch Set 5 : always do global UninitializeForTesting when uninitializing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -26 lines) Patch
M base/metrics/histogram_unittest.cc View 1 2 3 4 chunks +19 lines, -5 lines 0 comments Download
M base/metrics/sparse_histogram_unittest.cc View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M base/metrics/statistics_recorder.h View 1 2 3 3 chunks +12 lines, -4 lines 0 comments Download
M base/metrics/statistics_recorder.cc View 1 2 3 3 chunks +28 lines, -8 lines 0 comments Download
M base/metrics/statistics_recorder_unittest.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (12 generated)
bcwhite
Here's the basic idea of it. There are still a few things that go wrong ...
4 years, 9 months ago (2016-03-08 19:47:20 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/1779503002/diff/1/base/metrics/statistics_recorder.h File base/metrics/statistics_recorder.h (right): https://codereview.chromium.org/1779503002/diff/1/base/metrics/statistics_recorder.h#newcode170 base/metrics/statistics_recorder.h:170: scoped_ptr<RangesMap> existing_ranges_; Can this be done in a test-only ...
4 years, 9 months ago (2016-03-08 20:04:12 UTC) #3
bcwhite
https://codereview.chromium.org/1779503002/diff/1/base/metrics/statistics_recorder.h File base/metrics/statistics_recorder.h (right): https://codereview.chromium.org/1779503002/diff/1/base/metrics/statistics_recorder.h#newcode170 base/metrics/statistics_recorder.h:170: scoped_ptr<RangesMap> existing_ranges_; On 2016/03/08 20:04:12, Alexei Svitkine (slow) wrote: ...
4 years, 9 months ago (2016-03-08 20:23:27 UTC) #4
Alexei Svitkine (slow)
I think so - it's not just the memory cost, but also the reducing the ...
4 years, 9 months ago (2016-03-08 21:23:14 UTC) #5
bcwhite
> I think so - it's not just the memory cost, but also the reducing ...
4 years, 9 months ago (2016-03-09 16:48:31 UTC) #6
bcwhite
On 2016/03/09 16:48:31, bcwhite wrote: > > I think so - it's not just the ...
4 years, 8 months ago (2016-04-07 17:41:09 UTC) #14
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1779503002/diff/220001/base/metrics/statistics_recorder_unittest.cc File base/metrics/statistics_recorder_unittest.cc (right): https://codereview.chromium.org/1779503002/diff/220001/base/metrics/statistics_recorder_unittest.cc#newcode68 base/metrics/statistics_recorder_unittest.cc:68: StatisticsRecorder::UninitializeForTesting(); Shouldn't this be part of UninitializeStatisticsRecorder()?
4 years, 8 months ago (2016-04-08 15:04:19 UTC) #16
bcwhite
https://codereview.chromium.org/1779503002/diff/220001/base/metrics/statistics_recorder_unittest.cc File base/metrics/statistics_recorder_unittest.cc (right): https://codereview.chromium.org/1779503002/diff/220001/base/metrics/statistics_recorder_unittest.cc#newcode68 base/metrics/statistics_recorder_unittest.cc:68: StatisticsRecorder::UninitializeForTesting(); On 2016/04/08 15:04:19, Alexei Svitkine wrote: > Shouldn't ...
4 years, 8 months ago (2016-04-08 16:06:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1779503002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1779503002/240001
4 years, 8 months ago (2016-04-08 17:32:17 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:240001)
4 years, 8 months ago (2016-04-08 17:38:42 UTC) #21
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 17:40:14 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b113b974a0cc071bd9822b499975307529eac294
Cr-Commit-Position: refs/heads/master@{#386119}

Powered by Google App Engine
This is Rietveld 408576698