|
Page Speed Optimization Libraries
1.13.35.1
|
TimedVariable implementation that only updates a basic UpDownCounter. More...
#include "statistics.h"
Public Member Functions | |
| FakeTimedVariable (StringPiece name, Statistics *stats) | |
| 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. | |
Protected Attributes | |
| Variable * | var_ |
Additional Inherited Members | |
Public Types inherited from net_instaweb::TimedVariable | |
| enum | Levels { TENSEC, MINUTE, HOUR, START } |
| The intervals for which we keep stats. | |
TimedVariable implementation that only updates a basic UpDownCounter.
|
inlinevirtual |
Get the amount added over the last time interval specified by "level".
This is a default implementation. Variable can only return the total value. This should be override in subclass if we want the values for different levels.
Implements net_instaweb::TimedVariable.
1.8.6