Page Speed Optimization Libraries  1.2.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::ConsoleStatisticsLogger Class Reference

Class that manages dumping statistics periodically to a file. More...

#include "statistics.h"

Inheritance diagram for net_instaweb::ConsoleStatisticsLogger:
net_instaweb::SharedMemConsoleStatisticsLogger net_instaweb::SplitConsoleStatisticsLogger

List of all members.

Public Member Functions

virtual void UpdateAndDumpIfRequired ()=0
virtual void DumpJSON (const std::set< GoogleString > &var_titles, const std::set< GoogleString > &hist_titles, int64 startTime, int64 endTime, int64 granularity_ms, Writer *writer, MessageHandler *message_handler) const =0
virtual Timertimer ()=0

Detailed Description

Class that manages dumping statistics periodically to a file.


Member Function Documentation

virtual void net_instaweb::ConsoleStatisticsLogger::DumpJSON ( const std::set< GoogleString > &  var_titles,
const std::set< GoogleString > &  hist_titles,
int64  startTime,
int64  endTime,
int64  granularity_ms,
Writer writer,
MessageHandler message_handler 
) const [pure virtual]

Writes the data from the logfile in JSON format for the given variables, filtered with the given parameters.

Implemented in net_instaweb::SharedMemConsoleStatisticsLogger.

If it's been longer than kStatisticsDumpIntervalMs, update the timestamp to now and dump the current state of the Statistics.

Implemented in net_instaweb::SharedMemConsoleStatisticsLogger, and net_instaweb::SplitConsoleStatisticsLogger.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines