Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2484)

Unified Diff: cc/animation.cc

Issue 12252058: Add a |scope| argument to TRACE_EVENT_INSTANT* and require its presence. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use flags to record scope Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/animation.cc
diff --git a/cc/animation.cc b/cc/animation.cc
index 9d71a1f00860535d234c9f9499ad3ea22d8a9554..81391ae7e16a21064aeb180a5e2b0a330b748fc0 100644
--- a/cc/animation.cc
+++ b/cc/animation.cc
@@ -102,7 +102,10 @@ void Animation::setRunState(RunState runState, double monotonicTime)
char stateBuffer[256];
base::snprintf(stateBuffer, sizeof(stateBuffer), "%s->%s", oldRunStateName, newRunStateName);
- TRACE_EVENT_INSTANT2("cc", "LayerAnimationController::setRunState", "Name", TRACE_STR_COPY(nameBuffer), "State", TRACE_STR_COPY(stateBuffer));
+ TRACE_EVENT_INSTANT2("cc", "LayerAnimationController::setRunState",
+ TRACE_EVENT_SCOPE_THREAD,
+ "Name", TRACE_STR_COPY(nameBuffer),
+ "State", TRACE_STR_COPY(stateBuffer));
}
void Animation::suspend(double monotonicTime)

Powered by Google App Engine
This is Rietveld 408576698