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

Issue 4364001: Allow histograms in cache stats.cc to bypass corruption checks... (Closed)

Created:
10 years, 1 month ago by jar (doing other things)
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Allow histograms in cache stats.cc to bypass corruption checks This is a relanding of http://codereview.chromium.org/4174002 The change in this CL is that I've made the function to look for errors virtual, and over-rode it in StatsHistograms. The current override doesn't actually check for inconsistencies, so that the UMA checks (and renderer-to-histogram checks) won't complain and refuse to transport the histograms. BUG=61281 r=rvargas Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64990

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -19 lines) Patch
M base/metrics/histogram.h View 1 2 3 12 chunks +56 lines, -5 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 21 chunks +97 lines, -9 lines 1 comment Download
M base/metrics/histogram_unittest.cc View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/common/metrics_helpers.cc View 1 2 3 1 chunk +17 lines, -1 line 0 comments Download
M chrome/renderer/renderer_histogram_snapshots.cc View 1 2 3 2 chunks +19 lines, -4 lines 0 comments Download
M net/disk_cache/stats_histogram.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/stats_histogram.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jar (doing other things)
10 years, 1 month ago (2010-11-03 01:31:15 UTC) #1
rvargas (doing something else)
LGTM for StatsHistogram + rbstmp for the rest. http://codereview.chromium.org/4364001/diff/9001/10002 File base/metrics/histogram.h (right): http://codereview.chromium.org/4364001/diff/9001/10002#newcode339 base/metrics/histogram.h:339: // ...
10 years, 1 month ago (2010-11-03 18:08:38 UTC) #2
jar (doing other things)
Comments and change per notes from rvargas. http://codereview.chromium.org/4364001/diff/9001/10002 File base/metrics/histogram.h (right): http://codereview.chromium.org/4364001/diff/9001/10002#newcode339 base/metrics/histogram.h:339: // updated ...
10 years, 1 month ago (2010-11-03 18:21:44 UTC) #3
rvargas (doing something else)
http://codereview.chromium.org/4364001/diff/9001/10002 File base/metrics/histogram.h (right): http://codereview.chromium.org/4364001/diff/9001/10002#newcode339 base/metrics/histogram.h:339: // updated on several threads simultaneously), the tallies might ...
10 years, 1 month ago (2010-11-03 21:09:04 UTC) #4
jam
http://codereview.chromium.org/4364001/diff/28001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): http://codereview.chromium.org/4364001/diff/28001/base/metrics/histogram.cc#newcode617 base/metrics/histogram.cc:617: DCHECK_EQ(total, redundant_count_); this DCHECK is firing a lot for ...
10 years, 1 month ago (2010-11-18 00:16:48 UTC) #5
jar (doing other things)
At a minimum, you can comment it out in your code. Do you hit it ...
10 years, 1 month ago (2010-11-18 17:30:28 UTC) #6
jar (doing other things)
Oh... and I should add.... a memory trashing bug would also cause this to fire... ...
10 years, 1 month ago (2010-11-18 17:31:27 UTC) #7
jam
I'll send you a stack trace next time this happens. I've seen it happen at ...
10 years, 1 month ago (2010-11-18 18:12:02 UTC) #8
jam
10 years, 1 month ago (2010-11-22 22:47:58 UTC) #9
btw this is pretty reproducible for me when I run browser_tests with
--single-process

On Thu, Nov 18, 2010 at 10:11 AM, John Abd-El-Malek <jam@chromium.org>wrote:

> I'll send you a stack trace next time this happens.  I've seen it happen at
> least 10 times so far, with a build with no changes from trunk..  I wasn't
> visiting about:histograms.  Most of the time might have been in
> --single-process mode.
>
>
> On Thu, Nov 18, 2010 at 9:31 AM, Jim Roskind <jar@chromium.org> wrote:
>
>> Oh... and I should add.... a memory trashing bug would also cause this to
>> fire... and that is what it is really watching for.
>>
>> Jim
>>
>>
>> On Thu, Nov 18, 2010 at 9:30 AM, Jim Roskind <jar@chromium.org> wrote:
>>
>>> At a minimum, you can comment it out in your code.
>>>
>>> Do you hit it during shutdown?
>>> Uma upload time? (usually disabled in debug mode)
>>> Visiting about:histograms?
>>>
>>> The DCHECK is probably instigated by racy histogram updates, which are
>>> generally acceptable.  IT should be VERY rare that this is hit, unless
>>> something in pretty wrong, as the likelihood of hitting this should be in
>>> the one-in-a-million category.
>>>
>>> For clarification, could you tell me what histogram is causing the
>>> problem?  You can usually look up the stack a frame or two and see a
>>> histogram instance... and it will have a member |name| which will answer my
>>> question.
>>>
>>> Thanks,
>>>
>>> Jim
>>>
>>>
>>> On Wed, Nov 17, 2010 at 4:16 PM, <jam@chromium.org> wrote:
>>>
>>>>
>>>>
>>>> http://codereview.chromium.org/4364001/diff/28001/base/metrics/histogram.cc
>>>> File base/metrics/histogram.cc (right):
>>>>
>>>>
>>>>
http://codereview.chromium.org/4364001/diff/28001/base/metrics/histogram.cc#n...
>>>> base/metrics/histogram.cc:617: DCHECK_EQ(total, redundant_count_);
>>>> this DCHECK is firing a lot for me.  is it really needed?
>>>>
>>>> http://codereview.chromium.org/4364001/
>>>>
>>>
>>>
>>
>

Powered by Google App Engine
This is Rietveld 408576698