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

#include "request_context.h"

List of all members.

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.

Detailed Description

Todo:
TODO(gee): Track queuing time.

Constructor & Destructor Documentation

Todo:
TODO(gee): Does this need to be thread safe? Timer is not owned by TimingInfo.

Member Function Documentation

Fetch related timing events. Note: Only the first call to FetchStarted will have an affect, subsequent calls are silent no-ops.

Initialize the TimingInfo with the specified Timer. Sets a timestamp from which GetElapsedMs is based.

Todo:
TODO(gee): This is forced by the RequestContext/GoogleRequestContext

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.


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