diff options
author | alph@chromium.org <alph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-21 06:01:36 +0000 |
---|---|---|
committer | alph@chromium.org <alph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-21 06:01:36 +0000 |
commit | 2bb3b8e022870b6ae42abed5d8a921b6b08f1c8c (patch) | |
tree | 60a746b3099b1f220eccc9979d7bd1bbfdf8111e /content/common/gpu/gpu_command_buffer_stub.cc | |
parent | e2693eab682106cfcfae8c767db5d3050804ec50 (diff) | |
download | chromium_src-2bb3b8e022870b6ae42abed5d8a921b6b08f1c8c.zip chromium_src-2bb3b8e022870b6ae42abed5d8a921b6b08f1c8c.tar.gz chromium_src-2bb3b8e022870b6ae42abed5d8a921b6b08f1c8c.tar.bz2 |
DevTools: Add an instrumentation event to track GPU utilization
Add an instrumentation event to GPU command buffer to enable GPU process
utilization tracking in DevTools. The collected events are then passed
to the DevToolsAgent peer at the inspected renderer process.
The Blink counterpart is at https://codereview.chromium.org/46663010/
TBR=jln
BUG=298951
Review URL: https://codereview.chromium.org/64173003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/gpu_command_buffer_stub.cc')
-rw-r--r-- | content/common/gpu/gpu_command_buffer_stub.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc index 6749fad..1bcfbe8 100644 --- a/content/common/gpu/gpu_command_buffer_stub.cc +++ b/content/common/gpu/gpu_command_buffer_stub.cc @@ -10,6 +10,7 @@ #include "base/memory/shared_memory.h" #include "base/time/time.h" #include "build/build_config.h" +#include "content/common/gpu/devtools_gpu_instrumentation.h" #include "content/common/gpu/gpu_channel.h" #include "content/common/gpu/gpu_channel_manager.h" #include "content/common/gpu/gpu_command_buffer_stub.h" @@ -169,6 +170,7 @@ GpuMemoryManager* GpuCommandBufferStub::GetMemoryManager() { } bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) { + devtools_gpu_instrumentation::ScopedGpuTask task(channel()); FastSetActiveURL(active_url_, active_url_hash_); // Ensure the appropriate GL context is current before handling any IPC |