summaryrefslogtreecommitdiffstats
path: root/content/browser
diff options
context:
space:
mode:
authorssid <ssid@chromium.org>2015-08-06 06:01:30 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-06 13:02:02 +0000
commit90694aeec592b22686ad54bc1a225c2b44cc468e (patch)
treef9f505dc2d345162f16f5552367ff49fdd833916 /content/browser
parentd369f9805ca82ca90b6b618b45ccc4af27d574a6 (diff)
downloadchromium_src-90694aeec592b22686ad54bc1a225c2b44cc468e.zip
chromium_src-90694aeec592b22686ad54bc1a225c2b44cc468e.tar.gz
chromium_src-90694aeec592b22686ad54bc1a225c2b44cc468e.tar.bz2
[tracing] Introduce MemoryDumpArgs to enable light and heavy dumps
The memory dump providers dump a lot of details at each dump which causes the trace size to be huge. So, this CL introduces MemoryDumpArgs that will be passed to each DumpProvider as an argument of OnMemoryDump. The args specify a high or low level of detail. This provides a means to request a light or heavy dump from the providers when necessary. TBR=reed@google.com, jam@chromium.org BUG=499731 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1262333005 Cr-Commit-Position: refs/heads/master@{#342103}
Diffstat (limited to 'content/browser')
-rw-r--r--content/browser/gpu/browser_gpu_memory_buffer_manager.cc1
-rw-r--r--content/browser/gpu/browser_gpu_memory_buffer_manager.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
index a1d54b7..8576088 100644
--- a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
+++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
@@ -262,6 +262,7 @@ void BrowserGpuMemoryBufferManager::SetDestructionSyncPoint(
}
bool BrowserGpuMemoryBufferManager::OnMemoryDump(
+ const base::trace_event::MemoryDumpArgs& args,
base::trace_event::ProcessMemoryDump* pmd) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
diff --git a/content/browser/gpu/browser_gpu_memory_buffer_manager.h b/content/browser/gpu/browser_gpu_memory_buffer_manager.h
index 206b19f..b11faf8 100644
--- a/content/browser/gpu/browser_gpu_memory_buffer_manager.h
+++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.h
@@ -42,7 +42,8 @@ class CONTENT_EXPORT BrowserGpuMemoryBufferManager
uint32 sync_point) override;
// Overridden from base::trace_event::MemoryDumpProvider:
- bool OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) override;
+ bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
+ base::trace_event::ProcessMemoryDump* pmd) override;
// Virtual for testing.
virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBufferForScanout(