Lines Matching refs:sample
21 // We sample with a Poisson process, with constant average sampling interval.
40 // we sample at rate R, the probability that an allocation of size S will be
88 auto sample =
90 sample->global.SetWeak(sample.get(), OnWeakCallback,
92 samples_.emplace(sample.get(), std::move(sample));
97 Sample* sample = data.GetParameter();
98 AllocationNode* node = sample->owner;
99 DCHECK_GT(node->allocations_[sample->size], 0);
100 node->allocations_[sample->size]--;
101 if (node->allocations_[sample->size] == 0) {
102 node->allocations_.erase(sample->size);
112 sample->profiler->samples_.erase(sample);
113 // sample is deleted because its unique ptr was erased from samples_.
284 const Sample* sample = it.second.get();
286 sample->owner->id_, sample->size, ScaleSample(sample->size, 1).count,
287 sample->sample_id});