net_instaweb::Statistics Class Reference

Base class for implementations of monitoring statistics. More...

#include "statistics.h"

Inheritance diagram for net_instaweb::Statistics:
net_instaweb::StatisticsTemplate< Var, Hist, TimedVar > net_instaweb::StatisticsTemplate< NullStatisticsVariable, NullHistogram, FakeTimedVariable > net_instaweb::StatisticsTemplate< SharedMemVariable, SharedMemHistogram, FakeTimedVariable > net_instaweb::StatisticsTemplate< SimpleStatsVariable, NullHistogram, FakeTimedVariable > net_instaweb::StatisticsTemplate< Var, NullHistogram, FakeTimedVariable > net_instaweb::ScalarStatisticsTemplate< NullStatisticsVariable > net_instaweb::SharedMemStatistics net_instaweb::ScalarStatisticsTemplate< SimpleStatsVariable > net_instaweb::ScalarStatisticsTemplate< Var > net_instaweb::NullStatistics net_instaweb::SimpleStats

List of all members.

Public Member Functions

virtual VariableAddVariable (const StringPiece &name)=0
virtual VariableFindVariable (const StringPiece &name) const =0
 Find a variable from a name, returning NULL if not found.
VariableGetVariable (const StringPiece &name) const
 Find a variable from a name, aborting if not found.
virtual HistogramAddHistogram (const StringPiece &name)=0
virtual HistogramFindHistogram (const StringPiece &name) const =0
 Find a histogram from a name, returning NULL if not found.
HistogramGetHistogram (const StringPiece &name) const
 Find a histogram from a name, aborting if not found.
virtual TimedVariableAddTimedVariable (const StringPiece &name, const StringPiece &group)=0
virtual TimedVariableFindTimedVariable (const StringPiece &name) const =0
 Find a TimedVariable from a name, returning NULL if not found.
TimedVariableGetTimedVariable (const StringPiece &name) const
 Find a TimedVariable from a name, aborting if not found.
virtual const StringVector & HistogramNames ()=0
 Return the names of all the histograms for render.
virtual const std::map
< GoogleString, StringVector > & 
TimedVariableMap ()=0
 Return the map of groupnames and names of all timedvariables for render.
virtual void Dump (Writer *writer, MessageHandler *handler)=0
 Dump the variable-values to a writer.
virtual void RenderTimedVariables (Writer *writer, MessageHandler *handler)
virtual void RenderHistograms (Writer *writer, MessageHandler *handler)
 Write all the histograms in this Statistic object to a writer.
virtual void Clear ()=0

Protected Member Functions

FakeTimedVariableNewFakeTimedVariable (const StringPiece &name, int index)
 A helper for subclasses that do not fully implement timed variables.

Detailed Description

Base class for implementations of monitoring statistics.


Member Function Documentation

virtual Histogram* net_instaweb::Statistics::AddHistogram ( const StringPiece &  name  )  [pure virtual]
virtual TimedVariable* net_instaweb::Statistics::AddTimedVariable ( const StringPiece &  name,
const StringPiece &  group 
) [pure virtual]
virtual Variable* net_instaweb::Statistics::AddVariable ( const StringPiece &  name  )  [pure virtual]
virtual void net_instaweb::Statistics::Clear (  )  [pure virtual]
virtual void net_instaweb::Statistics::RenderTimedVariables ( Writer writer,
MessageHandler handler 
) [virtual]

Export statistics to a writer. Statistics in a group are exported in one table.


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