Page Speed Optimization Libraries
1.4.26.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. |
A timed variable that forwards writes writes to two other TimedVariable objects, but reads only from one.
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 int64 net_instaweb::SplitTimedVariable::Get | ( | int | level | ) | [virtual] |
Get the amount added over the last time interval specified by "level".
Implements net_instaweb::TimedVariable.