Page Speed Optimization Libraries  1.4.26.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Friends
net_instaweb::SharedMemConsoleStatisticsLogger Class Reference
Inheritance diagram for net_instaweb::SharedMemConsoleStatisticsLogger:
net_instaweb::ConsoleStatisticsLogger

List of all members.

Public Member Functions

 SharedMemConsoleStatisticsLogger (const int64 update_interval_ms, const StringPiece &log_file, SharedMemVariable *var, MessageHandler *message_handler, Statistics *stats, FileSystem *file_system, Timer *timer)
virtual void UpdateAndDumpIfRequired ()
Timertimer ()
void DumpJSON (const std::set< GoogleString > &var_titles, const std::set< GoogleString > &hist_titles, int64 start_time, int64 end_time, int64 granularity_ms, Writer *writer, MessageHandler *message_handler) const

Friends

class SharedMemStatisticsTestBase

Member Function Documentation

void net_instaweb::SharedMemConsoleStatisticsLogger::DumpJSON ( const std::set< GoogleString > &  var_titles,
const std::set< GoogleString > &  hist_titles,
int64  start_time,
int64  end_time,
int64  granularity_ms,
Writer writer,
MessageHandler message_handler 
) const [virtual]

Writes filtered variable and histogram data in JSON format to the given writer. Variable data is a time series collected from with data points from start_time to end_time, whereas histograms are aggregated histogram data as of the given end_time. Granularity is the minimum time difference between each successive data point.

Implements net_instaweb::ConsoleStatisticsLogger.

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

Implements net_instaweb::ConsoleStatisticsLogger.


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