Closed Bug 592731 Opened 16 years ago Closed 15 years ago

Memory profiler should have an option to sort by count instead of volume

Categories

(Tamarin Graveyard :: Profiler, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: treilly, Unassigned)

Details

Attachments

(1 obsolete file)

Be good for finding ferreting out most frequent allocations, regardless of size
Component: Garbage Collection (mmGC) → Profiler
QA Contact: gc → profiler
This bug would have a longer and more fruitful life with a fleshed out description of the use case, and if it CC'd Thomas from QNX.
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
This is a simple tweak that reuses the existing machinery to implement a simple allocation site profiler for the shell. The presence of an additional environment variable makes GCHeap dump profile data in a useful form on shutdown. The environment variable can optionally carry information that instructs the machinery as to how to dump the data (how many entries, how to sort). It's not a fully general system but it's vastly simpler than nothing, and it means we can have simple allocation volume profiling in the shell without having to go in and edit any code.
Attachment #497165 - Flags: review?(treilly)
Comment on attachment 497165 [details] [diff] [review] Adapt DumpSimple for allocation site profiling Looks fine although my preference would be for GCHeap::Destroy to just call GCMemoryProfiler Destroy() and move all the code into GCMemoryProfiler.cpp
Attachment #497165 - Flags: review?(treilly) → review+
(In reply to comment #3) > Looks fine although my preference would be for GCHeap::Destroy to just call > GCMemoryProfiler Destroy() and move all the code into GCMemoryProfiler.cpp Noted. I will consider that when I land it.
changeset: 5676:ee4750c15ce4 user: Lars T Hansen <lhansen@adobe.com> summary: For 592731 - Memory profiler should have an option to sort by count instead of volume: simple allocation site profiling (r=treilly) http://hg.mozilla.org/tamarin-redux/rev/ee4750c15ce4
Attachment #497165 - Attachment is obsolete: true
Assignee: lhansen → nobody
Marking RESOLVED/FIXED.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: flashplayer-qrb+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: