Page Speed Optimization Libraries  1.4.26.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
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, CountHistogram, FakeTimedVariable > net_instaweb::StatisticsTemplate< SharedMemVariable, SharedMemHistogram, FakeTimedVariable > net_instaweb::StatisticsTemplate< SimpleStatsVariable, CountHistogram, FakeTimedVariable > net_instaweb::StatisticsTemplate< SplitVariable, SplitHistogram, SplitTimedVariable > net_instaweb::StatisticsTemplate< Var, CountHistogram, FakeTimedVariable > net_instaweb::ScalarStatisticsTemplate< NullStatisticsVariable > net_instaweb::SharedMemStatistics net_instaweb::ScalarStatisticsTemplate< SimpleStatsVariable > net_instaweb::SplitStatistics net_instaweb::ScalarStatisticsTemplate< Var > net_instaweb::NullStatistics net_instaweb::SimpleStats

List of all members.

Public Member Functions

virtual VariableAddVariable (const StringPiece &name)=0
virtual VariableAddGlobalVariable (const StringPiece &name)
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 DumpConsoleVarsToWriter (int64 current_time_ms, Writer *writer, MessageHandler *message_handler)
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
virtual ConsoleStatisticsLoggerconsole_logger () const

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 Variable* net_instaweb::Statistics::AddGlobalVariable ( const StringPiece &  name) [virtual]
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]

This is implemented as NULL here because most Statistics don't need it. In the context in which it is needed we only have access to a Statistics*, rather than the specific subclass, hence its being here. Return the ConsoleStatisticsLogger associated with this Statistics.

Reimplemented in net_instaweb::SharedMemStatistics.

virtual void net_instaweb::Statistics::DumpConsoleVarsToWriter ( int64  current_time_ms,
Writer writer,
MessageHandler message_handler 
) [inline, virtual]

Export statistics to a writer. Statistics in a group are exported in one table. This only exports console-related variables, as opposed to all variables, as the above does. Empty implementation because most Statistics don't need this. It's here because in the context in which it is needed we only have access to a Statistics*, rather than the specific subclass. current_time_ms: the time at which the dump was triggered

Reimplemented in net_instaweb::SharedMemStatistics.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines