Page Speed Optimization Libraries
1.13.35.1
|
#include "split_statistics.h"
Public Member Functions | |
SplitTimedVariable (TimedVariable *rw, TimedVariable *w) | |
virtual void | IncBy (int64 delta) |
Update the stat value. delta is in milliseconds. | |
virtual int64 | Get (int level) |
virtual void | Clear () |
Throw away all data. | |
Additional Inherited Members | |
Public Types inherited from net_instaweb::TimedVariable | |
enum | Levels { TENSEC, MINUTE, HOUR, START } |
The intervals for which we keep stats. | |
A timed variable that forwards writes writes to two other TimedVariable objects, but reads only from one.
net_instaweb::SplitTimedVariable::SplitTimedVariable | ( | TimedVariable * | rw, |
TimedVariable * | w | ||
) |
TimedVariable 'rw' will be used to read and write, histogram 'w' will be used for writes only. Does not take ownership of either 'rw' or 'w'. 'rw' and 'w' must be non-NULL.
|
virtual |
Get the amount added over the last time interval specified by "level".
Implements net_instaweb::TimedVariable.