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

Issue 1831763003: Reland: add dump provider for malloc heap profiler (https://codereview.chromium.org/1675183006/) (Closed)

Created:
4 years, 9 months ago by Primiano Tucci (use gerrit)
Modified:
4 years, 9 months ago
Reviewers:
danakj, haraken, Nico
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), wfh+watch_chromium.org, blink-reviews, tracing+reviews_chromium.org, kinuko+watch, kouhei+heap_chromium.org, DmitrySkiba, ssid
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: add dump provider for malloc heap profiler (https://codereview.chromium.org/1675183006/) Reason for reland: the previous CL forgot about the fact that nacl has its own special base target (base_nacl) which is a fork of the real base one. That caused a revert in crrev.com/1822013002 because: - The original CL introduced a dependency from a translation unit in base (malloc_dump_provider.cc) to allocator_features.h, which is a generated header. - The original CL was relying on the fact that there is an existing dependency from base to allocator_features declared in base.gyp. - The original CL forgot about the need of the same dependency from base_nacl. This cl is fixing the latter point. Original breakage: https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Mac/builds/8808 Original issue's description: > tracing: add dump provider for malloc heap profiler > > Now that the allocator shim is landing (the base API landed in > crre.com/1675143004, Linux support in crrev.com/1781573002) we > can use that to implement the malloc heap profiler on top of that. > This CL leverages the new shim API to collect information about > malloc/free and injecting that into the heap profiler, leveraging > the same infrastructure we are already using for PartitionAlloc > and BlinkGC (oilpan). > > Next steps > ---------- > Currently this heap profiler reports also the memory used by the > tracing subsystem itself, which is not desirable. Will come up > with some scoped suppression semantic to bypass the reporting. > > BUG=550886 > TBR=haraken > > Committed: https://crrev.com/14c8b52dac1285bbf23514d05e6109aa7edc427f > Cr-Commit-Position: refs/heads/master@{#382505} BUG=550886, 596873 TBR=ssid@chromium.org,petrcermak@chromium.org,dskiba@google.com,haraken@chromium.org Committed: https://crrev.com/fd907216bc422c737219832038e5fc0a5fb66488 Cr-Commit-Position: refs/heads/master@{#383225}

Patch Set 1 : Original CL #

Patch Set 2 : Diff from original cl #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -37 lines) Patch
M base/base_nacl.gyp View 1 3 chunks +3 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.h View 1 chunk +8 lines, -5 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.cc View 4 chunks +24 lines, -18 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc View 4 chunks +12 lines, -4 lines 0 comments Download
M base/trace_event/malloc_dump_provider.h View 3 chunks +21 lines, -0 lines 0 comments Download
M base/trace_event/malloc_dump_provider.cc View 4 chunks +159 lines, -1 line 2 comments Download
M base/trace_event/trace_log.cc View 2 chunks +8 lines, -5 lines 0 comments Download
M components/tracing/docs/heap_profiler_internals.md View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (7 generated)
Primiano Tucci (use gerrit)
Nico, can I ask you to take a look to base/base_nacl.gyp , which is the ...
4 years, 9 months ago (2016-03-24 17:42:42 UTC) #4
Primiano Tucci (use gerrit)
nico -> danakj, as nico seems to be away for a bit.
4 years, 9 months ago (2016-03-24 17:43:26 UTC) #6
danakj
rubberstamp LGTM on the new gyp changes
4 years, 9 months ago (2016-03-24 21:03:38 UTC) #7
haraken
WebKit LGTM
4 years, 9 months ago (2016-03-24 22:23:00 UTC) #8
Dmitry Skiba
https://codereview.chromium.org/1831763003/diff/40001/base/trace_event/malloc_dump_provider.cc File base/trace_event/malloc_dump_provider.cc (right): https://codereview.chromium.org/1831763003/diff/40001/base/trace_event/malloc_dump_provider.cc#newcode239 base/trace_event/malloc_dump_provider.cc:239: AllocationContext context = tracker->GetContextSnapshot(); BTW, you might want to ...
4 years, 9 months ago (2016-03-24 22:58:06 UTC) #9
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1831763003/diff/40001/base/trace_event/malloc_dump_provider.cc File base/trace_event/malloc_dump_provider.cc (right): https://codereview.chromium.org/1831763003/diff/40001/base/trace_event/malloc_dump_provider.cc#newcode239 base/trace_event/malloc_dump_provider.cc:239: AllocationContext context = tracker->GetContextSnapshot(); On 2016/03/24 22:58:06, Dmitry Skiba ...
4 years, 9 months ago (2016-03-25 02:05:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831763003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831763003/40001
4 years, 9 months ago (2016-03-25 02:05:21 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 9 months ago (2016-03-25 02:13:41 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 02:15:18 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fd907216bc422c737219832038e5fc0a5fb66488
Cr-Commit-Position: refs/heads/master@{#383225}

Powered by Google App Engine
This is Rietveld 408576698