DescriptionTrace memory records source function for posted tasks instead of "RunTask"
The chrome://tracing system for memory intentionally only records two pieces
of data for each TRACE_EVENT - the category and name of the event. This keeps
its data structures small (since tcmalloc reads them frequently during heap
profiling) and is all that is needed for binning most allocations into groups.
However, grouping all memory allocated by posted tasks under "RunTask" isn't
useful - the user needs to know which task actually resulted in the memory
allocations. This patch attributes the allocations to the source function of
the task, allowing the user to find the actual source.
BUG=trace-viewer:331
TEST=manual, run chrome://tracing with memory checked, click on a sample in the heap row, the breakdown shows individual function names instead of "RunTask"
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219411
Patch Set 1 #
Total comments: 1
Patch Set 2 : better macro style #
Messages
Total messages: 8 (0 generated)
|