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

Issue 22909045: Trace memory records source function for posted tasks instead of "RunTask" (Closed)

Created:
7 years, 4 months ago by James Cook
Modified:
7 years, 4 months ago
CC:
chromium-reviews, dsinclair+watch_chromium.org, erikwright+watch_chromium.org, sadrul
Visibility:
Public.

Description

Trace 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M base/debug/trace_event.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M base/message_loop/message_loop.cc View 1 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
James Cook
dsinclair, would you feel comfortable reviewing this patch? nduca is out, but I could wait ...
7 years, 4 months ago (2013-08-22 22:59:15 UTC) #1
dsinclair
https://codereview.chromium.org/22909045/diff/1/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/22909045/diff/1/base/debug/trace_event.h#newcode242 base/debug/trace_event.h:242: category_group, name, arg1_name, arg1_val, arg2_name, arg2_val) I like the ...
7 years, 4 months ago (2013-08-23 13:39:47 UTC) #2
James Cook
dsinclair, PTAL
7 years, 4 months ago (2013-08-23 15:56:24 UTC) #3
dsinclair
lgtm
7 years, 4 months ago (2013-08-23 15:59:35 UTC) #4
James Cook
jar, can I get OWNERS for base/message_loop? This is a small refinement to my chrome:tracing ...
7 years, 4 months ago (2013-08-23 16:05:50 UTC) #5
jar (doing other things)
base LGTM
7 years, 4 months ago (2013-08-23 22:55:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/22909045/6001
7 years, 4 months ago (2013-08-23 23:03:15 UTC) #7
commit-bot: I haz the power
7 years, 4 months ago (2013-08-24 03:26:45 UTC) #8
Message was sent while issue was closed.
Change committed as 219411

Powered by Google App Engine
This is Rietveld 408576698