Page Speed Optimization Libraries
1.2.24.1
|
Public Member Functions | |
SplitStatistics (ThreadSystem *thread_system, Statistics *local, Statistics *global) | |
Protected Member Functions | |
virtual SplitVariable * | NewVariable (const StringPiece &name, int index) |
Interface to subclass. | |
virtual SplitVariable * | NewGlobalVariable (const StringPiece &name, int index) |
Default implementation just calls NewVariable. | |
virtual SplitHistogram * | NewHistogram (const StringPiece &name) |
virtual SplitTimedVariable * | NewTimedVariable (const StringPiece &name, int index) |
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.