Lines Matching defs:Histogram
33 // a histogram for passing to the AddHistogramSample function
39 // to a histogram created with CreateHistogram function
59 // Create a histogram by name. If the create is successful,
72 // Add a sample to a histogram created with the CreateHistogram
74 void AddHistogramSample(void* histogram, int sample) {
76 return add_histogram_sample_function_(histogram, sample);
170 // A Histogram represents a dynamically created histogram in the StatsTable.
171 // It will be registered with the histogram system on first use.
172 class Histogram {
174 Histogram() { }
175 Histogram(const char* name,
188 // Add a single sample to this histogram.
191 // Returns true if this histogram is enabled.
204 // Returns the handle to the histogram.
228 class HistogramTimer : public Histogram {
238 : Histogram(name, min, max, num_buckets, isolate),
303 // A histogram timer that can aggregate events within a larger scope.
316 class AggregatableHistogramTimer : public Histogram {
321 : Histogram(name, min, max, num_buckets, isolate) {}
339 explicit AggregatingHistogramTimerScope(AggregatableHistogramTimer* histogram)
340 : histogram_(histogram) {
353 explicit AggregatedHistogramTimerScope(AggregatableHistogramTimer* histogram)
354 : histogram_(histogram) {
367 // backing histogram receives one sample every T ms, where the T is controlled
372 // each time interval [x; x + T) the backing histogram gets one sample value
374 template <typename Histogram>
385 explicit AggregatedMemoryHistogram(Histogram* backing_histogram)
394 // corresponding aggregated samples to backing histogram.
408 Histogram* backing_histogram_;
412 template <typename Histogram>
413 void AggregatedMemoryHistogram<Histogram>::AddSample(double current_ms,
434 // Send aggregated samples to the backing histogram from the start_ms
470 template <typename Histogram>
471 double AggregatedMemoryHistogram<Histogram>::Aggregate(double current_ms,
1063 Histogram* name() { return &name##_; }
1078 Histogram* name() { return &name##_; }
1083 Histogram* name() { return &name##_; }
1089 AggregatedMemoryHistogram<Histogram>* aggregated_##name() { \
1172 #define HR(name, caption, min, max, num_buckets) Histogram name##_;
1186 Histogram name##_;
1191 Histogram name##_;
1197 AggregatedMemoryHistogram<Histogram> aggregated_##name##_;