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

#include "split_statistics.h"

Inheritance diagram for net_instaweb::SplitTimedVariable:
net_instaweb::TimedVariable

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.
 

Detailed Description

A timed variable that forwards writes writes to two other TimedVariable objects, but reads only from one.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.


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