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

Issue 1467453003: [Tracing] Make heap profiler type info a string (Closed)

Created:
5 years, 1 month ago by Ruud van Asseldonk
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, nduca, petrcermak, tracing+reviews_chromium.org, vmpstr+watch_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] Make heap profiler type info a string Instead of keeping a 16-bit "type ID" to do type profiling, the heap profiler will just keep a |const char*| with the type name. The type names are deduplicated at dump time, so in the trace log heap dumps still reference types by ID, and there is one dictionary at the end that maps type IDs to their names. Internally, a null pointer type name is used to indicate "unknown type". It is dumped in the trace as type name "[unknown]", so it requires no special treatment from the UI. (Contrary to previous intent.) The mapping dictionary follows the same convention as the current "stackFrames" dictionary: it is one metadata event per process, with name "typeNames". The args of this event contain a dictionary that maps type IDs to their name. This is part of the heap profiler in chrome://tracing. BUG=524631 Committed: https://crrev.com/4adda6fd325178b3d3704c8fe1a8a842df7873bd Cr-Commit-Position: refs/heads/master@{#361660}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address primiano comments (do not remove demangling yet) #

Patch Set 3 : Remove demangler for now #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -90 lines) Patch
M base/trace_event/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context.h View 1 1 chunk +7 lines, -8 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context.cc View 3 chunks +11 lines, -6 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer.h View 4 chunks +12 lines, -5 lines 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer.cc View 5 chunks +14 lines, -18 lines 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer_unittest.cc View 1 7 chunks +44 lines, -42 lines 0 comments Download
A base/trace_event/heap_profiler_type_name_deduplicator.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
A base/trace_event/heap_profiler_type_name_deduplicator.cc View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A base/trace_event/heap_profiler_type_name_deduplicator_unittest.cc View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
M base/trace_event/memory_allocator_dump_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
M base/trace_event/memory_dump_session_state.h View 4 chunks +13 lines, -1 line 0 comments Download
M base/trace_event/memory_dump_session_state.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M base/trace_event/trace_event.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M base/trace_event/winheap_dump_provider_win_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_memory_dump_provider_adapter.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 27 (12 generated)
Ruud van Asseldonk
5 years, 1 month ago (2015-11-20 15:37:58 UTC) #3
Primiano Tucci (use gerrit)
Can you move the Demangler part to another CL? I need some extra thinking there ...
5 years, 1 month ago (2015-11-23 15:46:48 UTC) #4
Ruud van Asseldonk
https://codereview.chromium.org/1467453003/diff/1/base/trace_event/heap_profiler_allocation_context.h File base/trace_event/heap_profiler_allocation_context.h (right): https://codereview.chromium.org/1467453003/diff/1/base/trace_event/heap_profiler_allocation_context.h#newcode60 base/trace_event/heap_profiler_allocation_context.h:60: // Type name of the type stored in the ...
5 years, 1 month ago (2015-11-23 18:23:26 UTC) #5
Ruud van Asseldonk
+pfeldman, can you please take a look at this one-line change in content/child?
5 years, 1 month ago (2015-11-23 18:25:16 UTC) #7
Primiano Tucci (use gerrit)
pfeldman -> jochen for one line change in content/child/web_memory_dump_provider_adapter.cc Nothing personal with Pavel, just Jochen ...
5 years ago (2015-11-24 10:58:14 UTC) #9
pfeldman
I cans still lgtm it.
5 years ago (2015-11-24 23:34:44 UTC) #10
Primiano Tucci (use gerrit)
On 2015/11/24 23:34:44, pfeldman wrote: > I cans still lgtm it. Nevermind the better timezone ...
5 years ago (2015-11-24 23:38:02 UTC) #11
jochen (gone - plz use gerrit)
lgtm
5 years ago (2015-11-25 08:40:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467453003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467453003/40001
5 years ago (2015-11-25 08:57:06 UTC) #16
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/99177) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years ago (2015-11-25 08:59:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467453003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467453003/60001
5 years ago (2015-11-25 10:23:54 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/101218)
5 years ago (2015-11-25 12:20:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467453003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467453003/60001
5 years ago (2015-11-25 12:29:17 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-11-25 15:19:57 UTC) #26
commit-bot: I haz the power
5 years ago (2015-11-25 15:20:42 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4adda6fd325178b3d3704c8fe1a8a842df7873bd
Cr-Commit-Position: refs/heads/master@{#361660}

Powered by Google App Engine
This is Rietveld 408576698