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

Issue 987043003: [tracing] Introduce support for userland memory allocators dumps. (Closed)

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

Description

[tracing] Introduce support for userland memory allocators dumps. This introduces the MemoryAllocatorDump which defines the ground data model that every allocator MemoryDumpProvider must comply with in order to get a coherent snapshot of the various allocators inside the trace. Furthermore, MemoryDumpProvider(s) can specify further attributes that will be attached to each dump point using the MemoryAllocatorAttributes map. BUG=466141 Committed: https://crrev.com/13cf4d070f757ce190f49c2ed736518f35ee410b Cr-Commit-Position: refs/heads/master@{#321368}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : Simplify the extra attribute logic #

Patch Set 7 : Rebase #

Total comments: 8

Patch Set 8 : Rebase + capitalize + test #

Patch Set 9 : Rebase + use hex strings #

Patch Set 10 : Fix death test #

Patch Set 11 : Fix DEATH test not supported on android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+440 lines, -8 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M base/trace_event/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
A base/trace_event/memory_allocator_attributes.h View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
A base/trace_event/memory_allocator_dump.h View 1 2 3 4 5 1 chunk +66 lines, -0 lines 0 comments Download
A base/trace_event/memory_allocator_dump.cc View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
A base/trace_event/memory_allocator_dump_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +95 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 6 7 3 chunks +34 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_provider.h View 1 2 3 4 5 2 chunks +14 lines, -3 lines 0 comments Download
A base/trace_event/memory_dump_provider.cc View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_dump.h View 1 2 3 4 5 5 chunks +30 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 2 3 4 5 2 chunks +27 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_totals.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (18 generated)
Primiano Tucci (use gerrit)
5 years, 9 months ago (2015-03-11 17:11:10 UTC) #3
nduca
lgtm awesome https://codereview.chromium.org/987043003/diff/100001/base/trace_event/memory_allocator_dump.h File base/trace_event/memory_allocator_dump.h (right): https://codereview.chromium.org/987043003/diff/100001/base/trace_event/memory_allocator_dump.h#newcode45 base/trace_event/memory_allocator_dump.h:45: const DictionaryValue& extra_attributes() const { return extra_attributes_; ...
5 years, 9 months ago (2015-03-12 04:04:10 UTC) #4
Primiano Tucci (use gerrit)
https://codereview.chromium.org/987043003/diff/100001/base/trace_event/memory_allocator_dump.h File base/trace_event/memory_allocator_dump.h (right): https://codereview.chromium.org/987043003/diff/100001/base/trace_event/memory_allocator_dump.h#newcode45 base/trace_event/memory_allocator_dump.h:45: const DictionaryValue& extra_attributes() const { return extra_attributes_; } On ...
5 years, 9 months ago (2015-03-13 19:39:08 UTC) #5
picksi
Looks good! One question about dump_provider_currently_active... https://codereview.chromium.org/987043003/diff/120002/base/trace_event/memory_allocator_dump.cc File base/trace_event/memory_allocator_dump.cc (right): https://codereview.chromium.org/987043003/diff/120002/base/trace_event/memory_allocator_dump.cc#newcode55 base/trace_event/memory_allocator_dump.cc:55: mdp->allocator_attributes(); mdp can ...
5 years, 9 months ago (2015-03-16 09:18:06 UTC) #7
Primiano Tucci (use gerrit)
Thanks for the comments +skyostil might have some insightful opinion on picksi's concern about dump_provider_currently_active_? ...
5 years, 9 months ago (2015-03-16 09:57:18 UTC) #8
picksi
https://codereview.chromium.org/987043003/diff/120002/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/987043003/diff/120002/base/trace_event/memory_dump_manager.cc#newcode133 base/trace_event/memory_dump_manager.cc:133: dump_provider_currently_active_ = dump_provider; "It feels a little dangerous" to ...
5 years, 9 months ago (2015-03-16 10:25:04 UTC) #9
Primiano Tucci (use gerrit)
+dsinclair. Take it as a warming "welcome back":)
5 years, 9 months ago (2015-03-16 16:09:10 UTC) #11
dsinclair
lgtm https://codereview.chromium.org/987043003/diff/120002/base/trace_event/memory_allocator_attributes.h File base/trace_event/memory_allocator_attributes.h (right): https://codereview.chromium.org/987043003/diff/120002/base/trace_event/memory_allocator_attributes.h#newcode19 base/trace_event/memory_allocator_attributes.h:19: // refer to src/tools/perf/unit-info.json for the semantic of ...
5 years, 9 months ago (2015-03-16 16:13:00 UTC) #12
Primiano Tucci (use gerrit)
https://codereview.chromium.org/987043003/diff/120002/base/trace_event/memory_allocator_attributes.h File base/trace_event/memory_allocator_attributes.h (right): https://codereview.chromium.org/987043003/diff/120002/base/trace_event/memory_allocator_attributes.h#newcode19 base/trace_event/memory_allocator_attributes.h:19: // refer to src/tools/perf/unit-info.json for the semantic of the ...
5 years, 9 months ago (2015-03-17 10:30:59 UTC) #14
Primiano Tucci (use gerrit)
+danakj for build files OWNERS stamp... until crrev.com/1014923002 gets its green lights :-)
5 years, 9 months ago (2015-03-17 23:11:51 UTC) #16
danakj
LGTM
5 years, 9 months ago (2015-03-17 23:25:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/987043003/190001
5 years, 9 months ago (2015-03-19 12:23:00 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/6918)
5 years, 9 months ago (2015-03-19 12:28:24 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/987043003/210001
5 years, 9 months ago (2015-03-19 12:41:12 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/6924)
5 years, 9 months ago (2015-03-19 12:46:34 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/987043003/230001
5 years, 9 months ago (2015-03-19 13:21:54 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/6933)
5 years, 9 months ago (2015-03-19 13:26:19 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/987043003/250001
5 years, 9 months ago (2015-03-19 15:15:11 UTC) #36
commit-bot: I haz the power
Committed patchset #11 (id:250001)
5 years, 9 months ago (2015-03-19 16:24:44 UTC) #37
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 16:25:18 UTC) #38
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/13cf4d070f757ce190f49c2ed736518f35ee410b
Cr-Commit-Position: refs/heads/master@{#321368}

Powered by Google App Engine
This is Rietveld 408576698