OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:StatisticsRecorder
(Results
1 - 17
of
17
) sorted by null
/external/libchrome/base/metrics/
statistics_recorder.cc
34
LazyInstance<Lock>::Leaky
StatisticsRecorder
::lock_;
37
StatisticsRecorder
*
StatisticsRecorder
::top_ = nullptr;
40
bool
StatisticsRecorder
::is_vlog_initialized_ = false;
42
size_t
StatisticsRecorder
::BucketRangesHash::operator()(
47
bool
StatisticsRecorder
::BucketRangesEqual::operator()(
53
StatisticsRecorder
::~
StatisticsRecorder
() {
60
void
StatisticsRecorder
::EnsureGlobalRecorderWhileLocked() {
65
const
StatisticsRecorder
* const p = new StatisticsRecorder
[
all
...]
statistics_recorder_unittest.cc
84
statistics_recorder_ =
StatisticsRecorder
::CreateTemporaryForTesting();
91
delete
StatisticsRecorder
::top_;
92
DCHECK(!
StatisticsRecorder
::top_);
95
bool HasGlobalRecorder() { return
StatisticsRecorder
::top_ != nullptr; }
104
StatisticsRecorder
::RegisterOrDeleteDuplicateRanges(ranges);
108
void InitLogOnShutdown() {
StatisticsRecorder
::InitLogOnShutdown(); }
110
bool IsVLogInitialized() { return
StatisticsRecorder
::is_vlog_initialized_; }
114
StatisticsRecorder
::is_vlog_initialized_ = false;
119
std::unique_ptr<
StatisticsRecorder
> statistics_recorder_;
137
EXPECT_EQ(
StatisticsRecorder
::RegisterOrDeleteDuplicate(histogram)
[
all
...]
statistics_recorder.h
5
//
StatisticsRecorder
holds all Histograms and BucketRanges that are used by
43
//
StatisticsRecorder
doesn't have any public constructor. For testing purpose,
48
class BASE_EXPORT
StatisticsRecorder
{
50
// An interface class that allows the
StatisticsRecorder
to forcibly merge
70
~
StatisticsRecorder
();
115
// Ownership of the individual histograms remains with the
StatisticsRecorder
.
188
// Creates a temporary
StatisticsRecorder
object for testing purposes. All new
190
// for the lifetime of yet another
StatisticsRecorder
object. The destruction
192
//
StatisticsRecorder
objects must be deleted in the opposite order to which
196
static std::unique_ptr<
StatisticsRecorder
> CreateTemporaryForTesting(
[
all
...]
histogram_snapshot_manager_unittest.cc
59
: statistics_recorder_(
StatisticsRecorder
::CreateTemporaryForTesting()),
64
std::unique_ptr<
StatisticsRecorder
> statistics_recorder_;
74
StatisticsRecorder
::PrepareDeltas(false, HistogramBase::kNoFlags,
90
StatisticsRecorder
::PrepareDeltas(false, HistogramBase::kNoFlags,
106
StatisticsRecorder
::PrepareDeltas(false, HistogramBase::kNoFlags,
persistent_histogram_allocator_unittest.cc
25
: statistics_recorder_(
StatisticsRecorder
::CreateTemporaryForTesting()) {
48
std::unique_ptr<
StatisticsRecorder
> statistics_recorder_;
213
const size_t starting_sr_count =
StatisticsRecorder
::GetHistogramCount();
215
// Create a local
StatisticsRecorder
in which the newly created histogram
219
std::unique_ptr<
StatisticsRecorder
> local_sr =
220
StatisticsRecorder
::CreateTemporaryForTesting();
221
EXPECT_EQ(0U,
StatisticsRecorder
::GetHistogramCount());
231
EXPECT_EQ(1U,
StatisticsRecorder
::GetHistogramCount());
242
EXPECT_EQ(2U,
StatisticsRecorder
::GetHistogramCount());
255
EXPECT_EQ(starting_sr_count,
StatisticsRecorder
::GetHistogramCount())
[
all
...]
histogram_delta_serialization_unittest.cc
17
std::unique_ptr<
StatisticsRecorder
> statistic_recorder(
18
StatisticsRecorder
::CreateTemporaryForTesting());
sparse_histogram_unittest.cc
54
statistics_recorder_ =
StatisticsRecorder
::CreateTemporaryForTesting();
80
std::unique_ptr<
StatisticsRecorder
> statistics_recorder_;
175
const
StatisticsRecorder
::Histograms histograms =
176
StatisticsRecorder
::GetHistograms();
203
const
StatisticsRecorder
::Histograms histograms =
204
StatisticsRecorder
::Sort(
StatisticsRecorder
::GetHistograms());
239
size_t histogram_count =
StatisticsRecorder
::GetHistogramCount();
245
DCHECK_EQ(histogram_count,
StatisticsRecorder
::GetHistogramCount());
266
DCHECK_EQ(histogram_count,
StatisticsRecorder
::GetHistogramCount())
[
all
...]
histogram_delta_serialization.cc
51
StatisticsRecorder
::PrepareDeltas(
sparse_histogram.cc
28
HistogramBase* histogram =
StatisticsRecorder
::FindHistogram(name);
33
StatisticsRecorder
::ShouldRecordHistogram(HashMetricName(name));
59
// Register this histogram with the
StatisticsRecorder
. Keep a copy of
64
histogram =
StatisticsRecorder
::RegisterOrDeleteDuplicate(
histogram_base.cc
170
StatisticsRecorder
::OnSampleCallback cb =
171
StatisticsRecorder
::FindCallback(histogram_name());
histogram_base_unittest.cc
28
// It is necessary to fully destruct any existing
StatisticsRecorder
31
statistics_recorder_ =
StatisticsRecorder
::CreateTemporaryForTesting();
35
std::unique_ptr<
StatisticsRecorder
> statistics_recorder_;
persistent_histogram_allocator.cc
548
StatisticsRecorder
::RegisterOrDeleteDuplicateRanges(
632
StatisticsRecorder
::FindHistogram(histogram->histogram_name());
651
return
StatisticsRecorder
::RegisterOrDeleteDuplicate(existing);
[
all
...]
persistent_histogram_allocator.h
249
// processes if |registered| (as in: added to the
StatisticsRecorder
) is
254
//
StatisticsRecorder
, updating the "logged" samples within the passed
311
// Gets or creates an object in the global
StatisticsRecorder
matching
476
friend class
StatisticsRecorder
;
histogram.cc
160
HistogramBase* histogram =
StatisticsRecorder
::FindHistogram(name_);
165
StatisticsRecorder
::ShouldRecordHistogram(HashMetricName(name_));
171
StatisticsRecorder
::RegisterOrDeleteDuplicateRanges(created_ranges);
217
// Register this histogram with the
StatisticsRecorder
. Keep a copy of
222
histogram =
StatisticsRecorder
::RegisterOrDeleteDuplicate(
[
all
...]
histogram_unittest.cc
80
statistics_recorder_ =
StatisticsRecorder
::CreateTemporaryForTesting();
104
std::unique_ptr<
StatisticsRecorder
> statistics_recorder_;
828
StatisticsRecorder
::SetRecordChecker(std::move(record_checker));
histogram.h
278
friend class
StatisticsRecorder
; // To allow it to delete duplicates.
/external/libchrome/base/test/metrics/
histogram_tester.cc
24
for (const auto* const histogram :
StatisticsRecorder
::GetHistograms()) {
36
HistogramBase* histogram =
StatisticsRecorder
::FindHistogram(name);
51
HistogramBase* histogram =
StatisticsRecorder
::FindHistogram(name);
63
HistogramBase* histogram =
StatisticsRecorder
::FindHistogram(name);
98
HistogramBase* histogram =
StatisticsRecorder
::FindHistogram(name);
129
for (const HistogramBase* histogram :
StatisticsRecorder
::GetHistograms()) {
147
HistogramBase* histogram =
StatisticsRecorder
::FindHistogram(histogram_name);
169
for (const auto* const histogram :
StatisticsRecorder
::GetHistograms()) {
Completed in 790 milliseconds