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

Issue 1262333005: [tracing] Introduce MemoryDumpArgs to enable light and heavy dumps (Closed)

Created:
5 years, 4 months ago by ssid
Modified:
5 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, feature-media-reviews_chromium.org, jam, piman+watch_chromium.org, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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 Committed: https://crrev.com/90694aeec592b22686ad54bc1a225c2b44cc468e Cr-Commit-Position: refs/heads/master@{#342103}

Patch Set 1 : Win and android fix. #

Total comments: 16

Patch Set 2 : Made changes. #

Total comments: 4

Patch Set 3 : Nits. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -71 lines) Patch
M base/trace_event/java_heap_dump_provider_android.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/java_heap_dump_provider_android.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/java_heap_dump_provider_android_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/malloc_dump_provider.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/malloc_dump_provider.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/memory_allocator_dump_unittest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 1 chunk +9 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 13 chunks +31 lines, -26 lines 0 comments Download
M base/trace_event/memory_dump_provider.h View 1 2 3 1 chunk +15 lines, -3 lines 0 comments Download
M base/trace_event/process_memory_maps_dump_provider.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/process_memory_maps_dump_provider.cc View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
M base/trace_event/process_memory_maps_dump_provider_unittest.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M base/trace_event/process_memory_totals_dump_provider.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/process_memory_totals_dump_provider.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/process_memory_totals_dump_provider_unittest.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M base/trace_event/trace_log.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/trace_log.cc View 3 chunks +8 lines, -3 lines 0 comments Download
M base/trace_event/winheap_dump_provider_win.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/winheap_dump_provider_win.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/winheap_dump_provider_win_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/child/child_discardable_shared_memory_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/web_memory_dump_provider_adapter.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/child/web_memory_dump_provider_adapter.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/common/host_discardable_shared_memory_manager.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/common/host_discardable_shared_memory_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/host_shared_bitmap_manager.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/common/host_shared_bitmap_manager.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gin/v8_isolate_memory_dump_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
M gin/v8_isolate_memory_dump_provider.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M gin/v8_isolate_memory_dump_provider_unittest.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M media/filters/vpx_video_decoder.cc View 2 chunks +3 lines, -1 line 0 comments Download
M skia/ext/skia_memory_dump_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
M skia/ext/skia_memory_dump_provider.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M skia/ext/skia_memory_dump_provider_unittest.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (16 generated)
ssid
PTAL, thanks
5 years, 4 months ago (2015-07-31 12:28:36 UTC) #2
petrcermak
Looks good overall. Here are a couple of comments: Patch description nits: * either s/lot ...
5 years, 4 months ago (2015-07-31 13:23:01 UTC) #3
ssid
replies inline. https://codereview.chromium.org/1262333005/diff/60001/base/trace_event/malloc_dump_provider.cc File base/trace_event/malloc_dump_provider.cc (right): https://codereview.chromium.org/1262333005/diff/60001/base/trace_event/malloc_dump_provider.cc#newcode31 base/trace_event/malloc_dump_provider.cc:31: bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args, On 2015/07/31 13:23:01, ...
5 years, 4 months ago (2015-07-31 15:14:33 UTC) #4
petrcermak
LGTM. Thanks, Petr https://codereview.chromium.org/1262333005/diff/60001/base/trace_event/malloc_dump_provider.cc File base/trace_event/malloc_dump_provider.cc (right): https://codereview.chromium.org/1262333005/diff/60001/base/trace_event/malloc_dump_provider.cc#newcode31 base/trace_event/malloc_dump_provider.cc:31: bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args, On 2015/07/31 ...
5 years, 4 months ago (2015-08-03 10:12:36 UTC) #5
ssid
Thanks. https://codereview.chromium.org/1262333005/diff/80001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1262333005/diff/80001/base/trace_event/memory_dump_manager.cc#newcode318 base/trace_event/memory_dump_manager.cc:318: if (!skip_dump) On 2015/08/03 10:12:35, petrcermak wrote: > ...
5 years, 4 months ago (2015-08-03 10:34:02 UTC) #6
ssid
This CL adds new struct to the memory_dump_provider.h and rest of the impl files have ...
5 years, 4 months ago (2015-08-03 10:37:22 UTC) #8
ssid
-danakj +nduca This CL adds new struct to the memory_dump_provider.h and rest of the impl ...
5 years, 4 months ago (2015-08-03 18:26:24 UTC) #10
nduca
lgtm
5 years, 4 months ago (2015-08-04 15:50:24 UTC) #11
ssid
These are mostly mechanical changes, because of change in DumpProvider API. PTAL. +jochen for changes ...
5 years, 4 months ago (2015-08-04 16:57:14 UTC) #13
jochen (gone - plz use gerrit)
content lgtm
5 years, 4 months ago (2015-08-05 10:20:41 UTC) #14
DaleCurtis
media/ lgtm
5 years, 4 months ago (2015-08-06 03:27:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1262333005/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1262333005/260001
5 years, 4 months ago (2015-08-06 12:57:07 UTC) #18
ssid
On 2015/08/06 03:27:31, DaleCurtis wrote: > media/ lgtm TBRing jam@ and reed@ for mechanical in ...
5 years, 4 months ago (2015-08-06 12:57:28 UTC) #19
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 4 months ago (2015-08-06 13:01:36 UTC) #20
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 13:02:21 UTC) #21
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/90694aeec592b22686ad54bc1a225c2b44cc468e
Cr-Commit-Position: refs/heads/master@{#342103}

Powered by Google App Engine
This is Rietveld 408576698