Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
net_instaweb::FakeTimedVariable Class Reference

TimedVariable implementation that only updates a basic UpDownCounter. More...

#include "statistics.h"

Inheritance diagram for net_instaweb::FakeTimedVariable:
net_instaweb::TimedVariable

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

Variablevar_
 

Additional Inherited Members

- Public Types inherited from net_instaweb::TimedVariable
enum  Levels { TENSEC, MINUTE, HOUR, START }
 The intervals for which we keep stats.
 

Detailed Description

TimedVariable implementation that only updates a basic UpDownCounter.

Member Function Documentation

virtual int64 net_instaweb::FakeTimedVariable::Get ( int  level)
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.


The documentation for this class was generated from the following file: