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

Simple name/value pair statistics implementation. More...

#include "simple_stats.h"

Inheritance diagram for net_instaweb::SimpleStats:
net_instaweb::ScalarStatisticsTemplate< SimpleStatsVariable > net_instaweb::StatisticsTemplate< VarTemplate< SimpleStatsVariable >, UpDownTemplate< SimpleStatsVariable >, CountHistogram, FakeTimedVariable > net_instaweb::Statistics

Public Member Functions

 SimpleStats (ThreadSystem *thread_system)
 
void SetThreadSystem (ThreadSystem *x)
 
ThreadSystemthread_system () const
 
virtual CountHistogramNewHistogram (StringPiece name)
 
virtual VarNewVariable (StringPiece name)
 Interface to subclass.
 
virtual UpDownNewUpDownCounter (StringPiece name)
 Interface to subclass.
 
- Public Member Functions inherited from net_instaweb::StatisticsTemplate< VarTemplate< SimpleStatsVariable >, UpDownTemplate< SimpleStatsVariable >, CountHistogram, FakeTimedVariable >
virtual VarTemplate
< SimpleStatsVariable > * 
AddVariable (const StringPiece &name)
 
virtual UpDownTemplate
< SimpleStatsVariable > * 
AddUpDownCounter (const StringPiece &name)
 
virtual UpDownTemplate
< SimpleStatsVariable > * 
AddGlobalUpDownCounter (const StringPiece &name)
 
virtual VarTemplate
< SimpleStatsVariable > * 
FindVariable (const StringPiece &name) const
 Find a variable from a name, returning NULL if not found.
 
virtual UpDownTemplate
< SimpleStatsVariable > * 
FindUpDownCounter (const StringPiece &name) const
 Find a variable from a name, returning NULL if not found.
 
virtual CountHistogramAddHistogram (const StringPiece &name)
 
virtual CountHistogramFindHistogram (const StringPiece &name) const
 Find a histogram from a name, returning NULL if not found.
 
virtual FakeTimedVariableAddTimedVariable (const StringPiece &name, const StringPiece &group)
 
virtual FakeTimedVariableFindTimedVariable (const StringPiece &name) const
 Find a TimedVariable from a name, returning NULL if not found.
 
virtual const StringVector & HistogramNames ()
 Return the names of all the histograms for render.
 
virtual const std::map
< GoogleString, StringVector > & 
TimedVariableMap ()
 Return the map of groupnames and names of all timedvariables for render.
 
virtual void Dump (Writer *writer, MessageHandler *message_handler)
 Dump the variable-values to a writer.
 
virtual void DumpJson (Writer *writer, MessageHandler *message_handler)
 
virtual void Clear ()
 
- Public Member Functions inherited from net_instaweb::Statistics
UpDownCounterGetUpDownCounter (const StringPiece &name) const
 Find a variable from a name, aborting if not found.
 
VariableGetVariable (const StringPiece &name) const
 Find a variable from a name, aborting if not found.
 
HistogramGetHistogram (const StringPiece &name) const
 Find a histogram from a name, aborting if not found.
 
TimedVariableGetTimedVariable (const StringPiece &name) const
 Find a TimedVariable from a name, aborting if not found.
 
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 StatisticsLoggerconsole_logger ()
 
int64 LookupValue (StringPiece stat_name)
 

Additional Inherited Members

- Public Types inherited from net_instaweb::ScalarStatisticsTemplate< SimpleStatsVariable >
typedef VarTemplate
< SimpleStatsVariable
Var
 Add typedefs for template class args to make them visible to subclasses.
 
typedef UpDownTemplate
< SimpleStatsVariable
UpDown
 
typedef CountHistogram Hist
 
typedef FakeTimedVariable TVar
 
- Static Public Attributes inherited from net_instaweb::Statistics
static const char kDefaultGroup []
 Default group for use with AddTimedVariable.
 
- Protected Member Functions inherited from net_instaweb::ScalarStatisticsTemplate< SimpleStatsVariable >
virtual TVarNewTimedVariable (StringPiece name)
 
- Protected Member Functions inherited from net_instaweb::StatisticsTemplate< VarTemplate< SimpleStatsVariable >, UpDownTemplate< SimpleStatsVariable >, CountHistogram, FakeTimedVariable >
virtual UpDownTemplate
< SimpleStatsVariable > * 
NewGlobalUpDownCounter (StringPiece name)
 Default implementation just calls NewUpDownCounter.
 
size_t variables_size () const
 
VarTemplate
< SimpleStatsVariable > * 
variables (size_t pos)
 
size_t up_down_size () const
 
UpDownTemplate
< SimpleStatsVariable > * 
up_downs (size_t pos)
 
size_t histograms_size () const
 
CountHistogramhistograms (size_t pos)
 
const GoogleStringhistogram_names (size_t pos) const
 

Detailed Description

Simple name/value pair statistics implementation.

Constructor & Destructor Documentation

net_instaweb::SimpleStats::SimpleStats ( ThreadSystem thread_system)
explicit

SimpleStats will not take ownership of thread_system. The thread system is used to instantiate mutexes to allow SimpleStatsVariable to be thread-safe.


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