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 #Messages
Total messages: 27 (12 generated)
|