Home | History | Annotate | Download | only in src

Lines Matching refs:Histogram

31   // a histogram for passing to the AddHistogramSample function
37 // to a histogram created with CreateHistogram function
57 // Create a histogram by name. If the create is successful,
70 // Add a sample to a histogram created with the CreateHistogram
72 void AddHistogramSample(void* histogram, int sample) {
74 return add_histogram_sample_function_(histogram, sample);
168 // A Histogram represents a dynamically created histogram in the StatsTable.
169 // It will be registered with the histogram system on first use.
170 class Histogram {
172 Histogram() { }
173 Histogram(const char* name,
186 // Add a single sample to this histogram.
189 // Returns true if this histogram is enabled.
200 // Returns the handle to the histogram.
225 class HistogramTimer : public Histogram {
235 : Histogram(name, min, max, num_buckets, isolate),
300 // A histogram timer that can aggregate events within a larger scope.
313 class AggregatableHistogramTimer : public Histogram {
318 : Histogram(name, min, max, num_buckets, isolate) {}
335 explicit AggregatingHistogramTimerScope(AggregatableHistogramTimer* histogram)
336 : histogram_(histogram) {
349 explicit AggregatedHistogramTimerScope(AggregatableHistogramTimer* histogram)
350 : histogram_(histogram) {
363 // backing histogram receives one sample every T ms, where the T is controlled
368 // each time interval [x; x + T) the backing histogram gets one sample value
370 template <typename Histogram>
381 explicit AggregatedMemoryHistogram(Histogram* backing_histogram)
390 // corresponding aggregated samples to backing histogram.
404 Histogram* backing_histogram_;
408 template <typename Histogram>
409 void AggregatedMemoryHistogram<Histogram>::AddSample(double current_ms,
430 // Send aggregated samples to the backing histogram from the start_ms
466 template <typename Histogram>
467 double AggregatedMemoryHistogram<Histogram>::Aggregate(double current_ms,
728 Histogram* name() { return &name##_; }
743 Histogram* name() { return &name##_; }
748 Histogram* name() { return &name##_; }
754 AggregatedMemoryHistogram<Histogram>* aggregated_##name() { \
836 #define HR(name, caption, min, max, num_buckets) Histogram name##_;
850 Histogram name##_;
855 Histogram name##_;
861 AggregatedMemoryHistogram<Histogram> aggregated_##name##_;