Chromium Code Reviews
DescriptionHold histograms in static variables instead of allocating heap.
If instance variables holding pointers to Histograms, it would cause
crash bug when the instance is torn down and the metrics services use
and recording of their contents.
The current "standard" patten for using Histograms includes making sure
that the Histogram instances are not destroyed prematurely, held in
static variables.
BUG=28096
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32311
Patch Set 1 #
Total comments: 2
Patch Set 2 : fix compile failure #Patch Set 3 : no ## needed #
Total comments: 5
Patch Set 4 : const kTimeBucketCount #
Messages
Total messages: 13 (0 generated)
|
||||||||||||||||||||||||||||