Page Speed Optimization Libraries
1.4.26.1
|
Class that manages dumping statistics periodically to a file. More...
#include "statistics.h"
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 Timer * | timer ()=0 |
Class that manages dumping statistics periodically to a file.
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.
virtual void net_instaweb::ConsoleStatisticsLogger::UpdateAndDumpIfRequired | ( | ) | [pure virtual] |
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.