DescriptionEvent tracing for sync events
Adds a "sync" trace event category that traces the following events:
- model association time
- time spent in each step of the syncer state machine
- transactions
Also included is a "sync_lock_contention" category that tracks the time spent
acquiring the sync lock. This information would normally clutter up the logs,
but it is useful information when we suspect lock contention is an issue.
To trace model association tracing, I needed to have a set of strings with
application lifetime representing each model type. I have changed the
return type of ModelTypeToString from std::string to const char* to meet this
need.
In the interest of avoiding duplicate functionality, this change also removes
other mechanisms for tracing transaction time. In particular, some of the log
messages around acquiring and releasing transactions have been removed.
BUG=104353
TEST=Run with '--trace-startup=sync,sync_lock_contention', open resulting
chrometrace.log in about:tracing.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111265
Patch Set 1 #
Total comments: 6
Patch Set 2 : Use simpler TRACE_EVENT macros #
Total comments: 16
Patch Set 3 : Respond to review comments #Patch Set 4 : More review related changes #Patch Set 5 : More fixes #Patch Set 6 : Rebase to trunk to resolve conflicts #
Total comments: 1
Patch Set 7 : Rebase to avoid conflicts #Patch Set 8 : Small bug fix #Patch Set 9 : Fix line length issues #Messages
Total messages: 17 (0 generated)
|