Page Speed Optimization Libraries
1.5.27.2
|
#include "request_context.h"
Public Member Functions | |
TimingInfo () | |
void | Init (Timer *timer) |
void | RequestStarted () |
void | RequestFinished () |
void | FetchStarted () |
void | FetchFirstByteReceived () |
void | FetchHeaderReceived () |
void | FetchFinished () |
int64 | GetElapsedMs () const |
Milliseconds since Init. | |
int64 | GetElapsedFromFetchStart () |
Milliseconds since FetchStarted. | |
int64 | init_ts_ms () const |
Methods for retrieving information. | |
int64 | start_ts_ms () const |
int64 | fetch_start_ms () const |
Milliseconds from request start to fetch start. | |
int64 | fetch_first_byte_ms () const |
int64 | fetch_header_ms () const |
Milliseconds from fetch start to head received. | |
int64 | fetch_elapsed_ms () const |
Milliseconds from fetch start to fetch end. | |
int64 | processing_elapsed_ms () const |
Milliseconds spent "processing": end time - start time - fetch time. |
Fetch related timing events. Note: Only the first call to FetchStarted will have an affect, subsequent calls are silent no-ops.
void net_instaweb::RequestContext::TimingInfo::Init | ( | Timer * | timer | ) |
Initialize the TimingInfo with the specified Timer. Sets a timestamp from which GetElapsedMs is based.
Called when the request is finished, i.e. the response has been sent to the client.
This should be called when the request "starts", for example in HTTPServerFetch::Start. It denotes the request "start time", which all other timing values are relative to.