Skip to content
Snippets Groups Projects
Commit f4ed8992 authored by ajwong@chromium.org's avatar ajwong@chromium.org
Browse files

Add in some infrastructure to make tracing of logical requests broken over async callbacks easier.

Create a concept of a TraceContext that holds a current Tracer which can be
used to create a timeseries sequence of events.

This implementation extends the functionality of RunnableMethod and
NewRunnableMethod() to create a parallel TracedMethod, and NewTracedMethod().
These new Traced methods methods and types know how to propogate the current
TraceContext to create a logical sequence of annotations through the servicing
of one logical action.

Currently, the code is controlled via define macro which changes
NewTracedMethod back into NewRunnableMethod if the hook is disabled.

BUG=52883
TEST=compiles, and client can connect to host.

Review URL: http://codereview.chromium.org/3169047

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57992 0039d316-1c4b-4281-b951-d872f2087c98
parent e67a73f4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment