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

Handles reading the logfile created by SharedMemConsoleStatisticsLogger. More...

#include "shared_mem_statistics.h"

List of all members.

Public Member Functions

 ConsoleStatisticsLogfileReader (FileSystem::InputFile *file, int64 start_time, int64 end_time, int64 granularity_ms, MessageHandler *message_handler)
bool ReadNextDataBlock (int64 *timestamp, GoogleString *data)
int64 end_time ()

Detailed Description

Handles reading the logfile created by SharedMemConsoleStatisticsLogger.


Member Function Documentation

bool net_instaweb::ConsoleStatisticsLogfileReader::ReadNextDataBlock ( int64 *  timestamp,
GoogleString *  data 
)

Reads the next timestamp in the file to timestamp and the corresponding chunk of data to data. Returns true if new data has been read.

Todo:
TODO(sligocki): Use a StringPiece* here to avoid extra copies. We need to guarantee that the data pointed to by the StringPiece will be valid for the right lifetime first.

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