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

Unified Diff: cc/debug/devtools_instrumentation.h

Issue 144463016: cc: add more devtools instrumentation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/devtools_instrumentation.h
diff --git a/cc/debug/devtools_instrumentation.h b/cc/debug/devtools_instrumentation.h
index 3caa81ea6d545f06efd2c8550fbd9ea55f26bdb7..6afc35d4f093a598927e9bfc479b5bccbcfab781 100644
--- a/cc/debug/devtools_instrumentation.h
+++ b/cc/debug/devtools_instrumentation.h
@@ -20,6 +20,8 @@ const char kPixelRefId[] = "pixelRefId";
const char kImageDecodeTask[] = "ImageDecodeTask";
const char kBeginFrame[] = "BeginFrame";
const char kActivateLayerTree[] = "ActivateLayerTree";
+const char kRequestMainThreadFrame[] = "RequestMainThreadFrame";
+const char kDrawFrame[] = "DrawFrame";
} // namespace internal
const char kRasterTask[] = "RasterTask";
@@ -101,6 +103,22 @@ inline void didBeginFrame(int layer_tree_host_id) {
internal::kLayerTreeId, layer_tree_host_id);
}
+inline void didDrawFrame(int layer_tree_host_id) {
danakj 2014/02/11 17:58:13 why do functions in this file have webkit style na
+ TRACE_EVENT_INSTANT1(internal::kCategory,
+ internal::kDrawFrame,
+ TRACE_EVENT_SCOPE_THREAD,
+ internal::kLayerTreeId,
+ layer_tree_host_id);
+}
+
+inline void didRequestMainThreadFrame(int layer_tree_host_id) {
+ TRACE_EVENT_INSTANT1(internal::kCategory,
+ internal::kRequestMainThreadFrame,
+ TRACE_EVENT_SCOPE_THREAD,
+ internal::kLayerTreeId,
+ layer_tree_host_id);
+}
+
} // namespace devtools_instrumentation
} // namespace cc
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698