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

Unified Diff: content/common/gpu/gpu_channel.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/common/gpu/client/gpu_channel_host.cc ('k') | content/gpu/gpu_info_collector_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.cc
===================================================================
--- content/common/gpu/gpu_channel.cc (revision 137679)
+++ content/common/gpu/gpu_channel.cc (working copy)
@@ -179,6 +179,11 @@
int32 surface_id,
const GPUCreateCommandBufferConfig& init_params,
int32* route_id) {
+ TRACE_EVENT1("gpu",
+ "GpuChannel::CreateViewCommandBuffer",
+ "surface_id",
+ surface_id);
+
*route_id = MSG_ROUTING_NONE;
content::GetContentClient()->SetActiveURL(init_params.active_url);
@@ -336,6 +341,8 @@
const gfx::Size& size,
const GPUCreateCommandBufferConfig& init_params,
IPC::Message* reply_message) {
+ TRACE_EVENT0("gpu", "GpuChannel::OnCreateOffscreenCommandBuffer");
+
int32 route_id = MSG_ROUTING_NONE;
content::GetContentClient()->SetActiveURL(init_params.active_url);
@@ -373,9 +380,10 @@
void GpuChannel::OnDestroyCommandBuffer(int32 route_id,
IPC::Message* reply_message) {
-#if defined(ENABLE_GPU)
TRACE_EVENT1("gpu", "GpuChannel::OnDestroyCommandBuffer",
"route_id", route_id);
+
+#if defined(ENABLE_GPU)
piman 2012/05/17 22:30:03 nit: Just remove #ifdef altogether, since we don't
if (router_.ResolveRoute(route_id)) {
GpuCommandBufferStub* stub = stubs_.Lookup(route_id);
bool need_reschedule = (stub && !stub->IsScheduled());
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/gpu/gpu_info_collector_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698