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