Home | History | Annotate | Download | only in metrics

Lines Matching refs:snapshot

444   std::unique_ptr<HistogramSamples> snapshot = SnapshotSampleVector();
447 // |logged_samples_| and gather another snapshot to return.
448 logged_samples_.swap(snapshot);
453 snapshot->Subtract(*logged_samples_);
454 logged_samples_->Add(*snapshot);
455 return snapshot;
462 std::unique_ptr<HistogramSamples> snapshot = SnapshotSampleVector();
466 snapshot->Subtract(*logged_samples_);
467 return snapshot;
598 std::unique_ptr<SampleVector> snapshot = SnapshotSampleVector();
599 Count sample_count = snapshot->TotalCount();
601 WriteAsciiHeader(*snapshot, sample_count, output);
607 max_size = GetPeakBucketSize(*snapshot);
612 while (0 == snapshot->GetCountAtIndex(largest_non_empty_bucket)) {
621 if (snapshot->GetCountAtIndex(i)) {
632 Count current = snapshot->GetCountAtIndex(i);
641 0 == snapshot->GetCountAtIndex(i + 1)) {
643 0 == snapshot->GetCountAtIndex(i + 1)) {
711 std::unique_ptr<SampleVector> snapshot = SnapshotSampleVector();
712 *count = snapshot->TotalCount();
713 *sum = snapshot->sum();
716 Sample count_at_index = snapshot->GetCountAtIndex(i);