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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 10386185: Add trace events to measure GPU process startup timing and time to first present. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « content/gpu/gpu_main.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
===================================================================
--- content/renderer/render_thread_impl.cc (revision 137679)
+++ content/renderer/render_thread_impl.cc (working copy)
@@ -766,6 +766,11 @@
int32 RenderThreadImpl::CreateViewCommandBuffer(
int32 surface_id, const GPUCreateCommandBufferConfig& init_params) {
+ TRACE_EVENT1("gpu",
+ "RenderThreadImpl::CreateViewCommandBuffer",
+ "surface_id",
+ surface_id);
+
int32 route_id = MSG_ROUTING_NONE;
IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer(
surface_id,
@@ -884,6 +889,8 @@
GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync(
content::CauseForGpuLaunch cause_for_gpu_launch) {
+ TRACE_EVENT0("gpu", "RenderThreadImpl::EstablishGpuChannelSync");
+
if (gpu_channel_.get()) {
// Do nothing if we already have a GPU channel or are already
// establishing one.
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698