summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_command_buffer_stub.cc
diff options
context:
space:
mode:
authoralph@chromium.org <alph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-21 06:01:36 +0000
committeralph@chromium.org <alph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-21 06:01:36 +0000
commit2bb3b8e022870b6ae42abed5d8a921b6b08f1c8c (patch)
tree60a746b3099b1f220eccc9979d7bd1bbfdf8111e /content/common/gpu/gpu_command_buffer_stub.cc
parente2693eab682106cfcfae8c767db5d3050804ec50 (diff)
downloadchromium_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.cc2
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