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

Issue 1105143003: [tracing] Simplify the MemoryAllocatorDump API (Closed)

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

Description

[tracing] Simplify the MemoryAllocatorDump API Up until now the API surface of the MemoryAllocatorDump has been strongly typed, enforcing three basic counters (physical_size, allocated_objects_count and allocated_objects_size) + arbitrary extra attributes. This CL simplifies the MAD interface as follows: - Remove the two argument (allocator_name, heap_name) in favor of a simpler and single argument absolute_name (e.g., CreateAllocatorDump("v8/isolate1/heap2") instead of CreateAllocatorDump("v8", "isolate1/heap2")) - Remove the storngly typed properties in favor of a generic Add(attribute_name, type, units, value) method. - Add helper methods MAD.AddScalar() and AddString(). - Rewrite the existing dumpers to use the new simpler API. - Fix the tests. BUG=466141 Committed: https://crrev.com/0842511c459cb46834d49766dede5c7fc4cb0187 Cr-Commit-Position: refs/heads/master@{#327310}

Patch Set 1 #

Total comments: 16

Patch Set 2 : petrcermak's nits #

Patch Set 3 : Rebase #

Patch Set 4 : Fix Win build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -201 lines) Patch
M base/trace_event/java_heap_dump_provider_android.cc View 2 chunks +6 lines, -11 lines 0 comments Download
M base/trace_event/malloc_dump_provider.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M base/trace_event/memory_allocator_dump.h View 1 2 chunks +33 lines, -50 lines 0 comments Download
M base/trace_event/memory_allocator_dump.cc View 1 1 chunk +75 lines, -59 lines 0 comments Download
M base/trace_event/memory_allocator_dump_unittest.cc View 4 chunks +89 lines, -39 lines 0 comments Download
M base/trace_event/process_memory_dump.h View 1 1 chunk +6 lines, -14 lines 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 chunk +6 lines, -10 lines 0 comments Download
M base/trace_event/winheap_dump_provider_win.cc View 1 2 3 2 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
Primiano Tucci (use gerrit)
PTAL, this is just removing files This is part of a series of 3 CLs ...
5 years, 8 months ago (2015-04-27 22:41:03 UTC) #2
nduca
lgtm
5 years, 8 months ago (2015-04-28 00:25:58 UTC) #3
Primiano Tucci (use gerrit)
+petrcermak, can you plz do a final review pass?
5 years, 7 months ago (2015-04-28 08:08:11 UTC) #5
petrcermak
LGTM with some food for thought :-) Thanks, Petr https://codereview.chromium.org/1105143003/diff/1/base/trace_event/memory_allocator_dump.cc File base/trace_event/memory_allocator_dump.cc (right): https://codereview.chromium.org/1105143003/diff/1/base/trace_event/memory_allocator_dump.cc#newcode19 base/trace_event/memory_allocator_dump.cc:19: ...
5 years, 7 months ago (2015-04-28 09:37:10 UTC) #6
Primiano Tucci (use gerrit)
Thanks. +reveman, +sebmarchand FYI https://codereview.chromium.org/1105143003/diff/1/base/trace_event/memory_allocator_dump.cc File base/trace_event/memory_allocator_dump.cc (right): https://codereview.chromium.org/1105143003/diff/1/base/trace_event/memory_allocator_dump.cc#newcode19 base/trace_event/memory_allocator_dump.cc:19: // Returns the c-string pointer ...
5 years, 7 months ago (2015-04-28 09:54:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1105143003/40001
5 years, 7 months ago (2015-04-28 13:05:18 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/47297)
5 years, 7 months ago (2015-04-28 13:07:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1105143003/60001
5 years, 7 months ago (2015-04-28 13:56:52 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/52983)
5 years, 7 months ago (2015-04-28 14:40:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1105143003/80001
5 years, 7 months ago (2015-04-28 14:48:11 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 7 months ago (2015-04-28 17:10:47 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 17:12:14 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0842511c459cb46834d49766dede5c7fc4cb0187
Cr-Commit-Position: refs/heads/master@{#327310}

Powered by Google App Engine
This is Rietveld 408576698