Page Speed Optimization Libraries
 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:

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


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)

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: