net_instaweb::NullHistogram Class Reference

Inheritance diagram for net_instaweb::NullHistogram:
net_instaweb::Histogram

List of all members.

Public Member Functions

virtual void Add (const double value)
 Record a value in its bucket.
virtual void Clear ()
 Throw away all data.
virtual bool Empty ()
 True if the histogram is empty.
virtual int MaxBuckets ()
virtual void EnableNegativeBuckets ()
 Allow histogram have negative values.
virtual void SetMinValue (double value)
 Set the minimum value allowed in histogram.
virtual void SetMaxValue (double value)
virtual void SetMaxBuckets (int i)
 Set the maximum number of buckets.

Protected Member Functions

virtual AbstractMutexlock ()
virtual double AverageInternal ()
virtual double PercentileInternal (const double perc)
virtual double StandardDeviationInternal ()
virtual double CountInternal ()
virtual double MaximumInternal ()
virtual double MinimumInternal ()
virtual double BucketStart (int index)
virtual double BucketCount (int index)
 Value of a bucket.

Member Function Documentation

virtual double net_instaweb::NullHistogram::BucketStart ( int  index  )  [inline, protected, virtual]

Lower bound of a bucket. If index == MaxBuckets() + 1, returns the upper bound of the histogram. DCHECK if index is in the range of [0, MaxBuckets()+1].

Implements net_instaweb::Histogram.

virtual int net_instaweb::NullHistogram::MaxBuckets (  )  [inline, virtual]

Maxmum number of buckets. This number can be used to allocate a buffer for Histogram.

Implements net_instaweb::Histogram.

virtual void net_instaweb::NullHistogram::SetMaxValue ( double  value  )  [inline, virtual]

Set the value upper-bound of a histogram, the value range in histogram is [MinValue, MaxValue) or (-MaxValue, MaxValue) if enabled negative buckets.

Implements net_instaweb::Histogram.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:19 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3