Page Speed Optimization Libraries  1.5.27.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
net_instaweb::SplitStatistics Class Reference
Inheritance diagram for net_instaweb::SplitStatistics:
net_instaweb::StatisticsTemplate< SplitVariable, SplitHistogram, SplitTimedVariable > net_instaweb::Statistics

List of all members.

Public Member Functions

 SplitStatistics (ThreadSystem *thread_system, Statistics *local, Statistics *global)
virtual ConsoleStatisticsLoggerconsole_logger ()

Protected Member Functions

virtual SplitVariableNewVariable (const StringPiece &name, int index)
 Interface to subclass.
virtual SplitVariableNewGlobalVariable (const StringPiece &name, int index)
 Default implementation just calls NewVariable.
virtual SplitHistogramNewHistogram (const StringPiece &name)
virtual SplitTimedVariableNewTimedVariable (const StringPiece &name, int index)

Constructor & Destructor Documentation

net_instaweb::SplitStatistics::SplitStatistics ( ThreadSystem thread_system,
Statistics local,
Statistics global 
)

Initializes a statistics splitter which proxies 'local' but also forwards writes to 'global' for aggregation with other SplitStatistics instances. Takes ownership of 'local', but not thread_system or global.

Note that before AddVariable or similar methods are invoked on this object (which is usually done by static ::InitStats(Statistics* methods) they must have been invoked on both local and global statistics objects for the same object names.


Member Function Documentation

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.

console_logger() is only used for read access, so just provide the local version.

Reimplemented from net_instaweb::Statistics.


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