Lines Matching defs:histograms

80     TestLogger(FakeStorage<BaseHistogram>* histograms, FakeStorage<BaseCounter>* counters)
81 : histograms_(histograms), counters_(counters), fail_(false) {}
131 FakeStorage<BaseHistogram>* histograms, FakeStorage<BaseCounter>* counters,
133 fbl::unique_ptr<TestLogger> logger = fbl::make_unique<TestLogger>(histograms, counters);
155 FakeStorage<BaseHistogram> histograms;
158 MakeCollector(/*max_histograms=*/0, /*max_counters=*/1, &histograms, &counters);
168 FakeStorage<BaseHistogram> histograms;
171 MakeCollector(/*max_histograms=*/0, /*max_counters=*/3, &histograms, &counters);
186 FakeStorage<BaseHistogram> histograms;
189 MakeCollector(/*max_histograms=*/1, /*max_counters=*/0, &histograms, &counters);
196 // Sanity check that different histograms do not interfere with each other.
199 FakeStorage<BaseHistogram> histograms;
202 MakeCollector(/*max_histograms=*/3, /*max_counters=*/0, &histograms, &counters);
221 FakeStorage<BaseHistogram> histograms;
225 MakeCollector(/*max_histograms=*/2, /*max_counters=*/2, &histograms, &counters);
248 EXPECT_EQ(histograms.GetOrNull(/*metric_id=*/1, /*event_type=*/0, /*event_type_index=*/1)
253 EXPECT_EQ(histograms.GetOrNull(1, 0, 2)->GetCount(options.map_fn(-1, options)), 3);
263 FakeStorage<BaseHistogram> histograms;
268 MakeCollector(/*max_histograms=*/2, /*max_counters=*/2, &histograms, &counters, &logger);
294 EXPECT_EQ(histograms.GetOrNull(/*metric_id=*/1, /*event_type=*/0, /*event_type_index=*/1)
299 EXPECT_EQ(histograms.GetOrNull(1, 0, 2)->GetCount(options.map_fn(-1, options)), 0);
308 // All histograms have the same shape bucket for simplicity,
311 // List of histograms to operate on.
312 fbl::Vector<Histogram> histograms;
329 for (auto& hist : args->histograms) {
371 // Verify that if we flush while the histograms and counters are being updated,
377 FakeStorage<BaseHistogram> histograms;
388 MakeCollector(/*max_histograms=*/9, /*max_counters=*/9, &histograms, &counters, &logger);
392 observe_args.histograms.push_back(
428 // Verify that all histograms buckets and counters have exactly |kOperations| * |kThreads| /
434 auto* tmp_hist = histograms.GetOrNull(2 * metric_id, 0, event_type_index);
438 EXPECT_EQ(tmp_hist->GetCount(i) + observe_args.histograms[index].GetRemoteCount(