Page Speed Optimization Libraries
1.3.25.1
|
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 () |
Timer * | timer () |
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 |
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.
virtual void net_instaweb::SharedMemConsoleStatisticsLogger::UpdateAndDumpIfRequired | ( | ) | [virtual] |
If it's been longer than kStatisticsDumpIntervalMs, update the timestamp to now and dump the current state of the Statistics.
Implements net_instaweb::ConsoleStatisticsLogger.