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

Issue 1151603004: [tracing] Add support to pre-load and merge ProcessMemoryDump(s). (Closed)

Created:
5 years, 7 months ago by Primiano Tucci (use gerrit)
Modified:
5 years, 7 months ago
Reviewers:
dsinclair, petrcermak
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, erikwright+watch_chromium.org, ssid
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Add support to pre-load and merge ProcessMemoryDump(s). Allows MemoryDumpProvider(s) with dump-time constraints (mostly GC allocators) to create out-of-band MemoryAllocatorDump(s) and merge them during the onMemoryDump callback. So far, the architecture of MemoryDumpProvider expected to never instantiate ProcessMemoryDump(s) directly, but just fill up the one passed as argument to the onMemoryDump(ProcessMemoryDump*) callback. This, however, doesn't cover the cases of dumpers that cannot dump at arbitrary times (i.e. during onMemoryDump callback) and need to pre-fill the dump stats before the actual callback comes. A concrete case of this are dump providers for garbage-collected allocators (specifically BlinkGC) where some of the stats can be collected only during the GC. BUG=466141 Committed: https://crrev.com/c7336081e09ad57bc7e5c5c5d4076db2b6b9d4ee Cr-Commit-Position: refs/heads/master@{#330924}

Patch Set 1 #

Patch Set 2 : Fix test #

Total comments: 16

Patch Set 3 : petrcermak nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -0 lines) Patch
M base/trace_event/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M base/trace_event/process_memory_dump.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A base/trace_event/process_memory_dump_unittest.cc View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
M base/trace_event/trace_event.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Primiano Tucci (use gerrit)
Dan, can you PTAL to this? It's a pretty small patch.
5 years, 7 months ago (2015-05-20 22:43:19 UTC) #2
Primiano Tucci (use gerrit)
+petrcermak, can you PTAL +ssid FYI
5 years, 7 months ago (2015-05-21 07:56:41 UTC) #4
petrcermak
LGTM with a couple of comment-style-only comments :-) Thanks, Petr https://codereview.chromium.org/1151603004/diff/20001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1151603004/diff/20001/base/trace_event/process_memory_dump.cc#newcode40 ...
5 years, 7 months ago (2015-05-21 08:17:38 UTC) #5
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1151603004/diff/20001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1151603004/diff/20001/base/trace_event/process_memory_dump.cc#newcode40 base/trace_event/process_memory_dump.cc:40: // and mmaps case are not relevant, let's just ...
5 years, 7 months ago (2015-05-21 08:33:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151603004/40001
5 years, 7 months ago (2015-05-21 08:34:02 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-21 10:07:36 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-05-21 10:08:32 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c7336081e09ad57bc7e5c5c5d4076db2b6b9d4ee
Cr-Commit-Position: refs/heads/master@{#330924}

Powered by Google App Engine
This is Rietveld 408576698