Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
net_instaweb::CountHistogram Class Reference

Trivial implementation. But Count() returns a meaningful value. More...

#include "statistics.h"

Inheritance diagram for net_instaweb::CountHistogram:
net_instaweb::Histogram

Public Member Functions

 CountHistogram (AbstractMutex *mutex)
 Takes ownership of mutex.
 
virtual void Add (double value)
 Record a value in its bucket.
 
virtual void Clear ()
 Throw away all data.
 
virtual int NumBuckets ()
 Returns number of buckets the histogram actually has.
 
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 SetSuggestedNumBuckets (int i)
 
virtual GoogleString GetName () const
 
- Public Member Functions inherited from net_instaweb::Histogram
bool Empty ()
 True if the histogram is empty.
 
virtual void Render (int index, Writer *writer, MessageHandler *handler)
 
double Average ()
 Returns average of the values added.
 
double Percentile (const double perc)
 
double StandardDeviation ()
 
double Count ()
 
double Maximum ()
 
double Minimum ()
 
double Median ()
 
GoogleString HtmlTableRow (const GoogleString &title, int index)
 
virtual double BucketLimit (int index)
 Upper bound of a bucket.
 

Protected Member Functions

virtual AbstractMutexlock () LOCK_RETURNED(mutex_)
 
virtual double AverageInternal ()
 Note that these *Internal interfaces require the mutex to be held.
 
virtual double PercentileInternal (const double perc)
 
virtual double StandardDeviationInternal ()
 
virtual double CountInternal () EXCLUSIVE_LOCKS_REQUIRED(lock())
 
virtual double MaximumInternal ()
 
virtual double MinimumInternal ()
 
virtual double BucketStart (int index)
 
virtual double BucketCount (int index)
 Value of a bucket.
 
- Protected Member Functions inherited from net_instaweb::Histogram
void WriteRawHistogramData (Writer *writer, MessageHandler *handler)
 

Detailed Description

Trivial implementation. But Count() returns a meaningful value.

Member Function Documentation

virtual double net_instaweb::CountHistogram::BucketStart ( int  index)
inlineprotectedvirtual

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

Implements net_instaweb::Histogram.

virtual void net_instaweb::CountHistogram::SetMaxValue ( double  value)
inlinevirtual

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.

virtual void net_instaweb::CountHistogram::SetSuggestedNumBuckets ( int  i)
inlinevirtual

Set the suggested number of buckets for the histogram. The implementation may chose to use a somewhat different number.

Implements net_instaweb::Histogram.


The documentation for this class was generated from the following file: