Closed Bug 1013011 Opened 11 years ago Closed 11 years ago

DMD: Remove stack frame records

Categories

(Core :: DMD, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

Attachments

(1 file)

DMD's most useful output is stack trace records -- all the allocations with identical stacks get aggregated into a single record. This is useful, and easy to understand. But sometimes you have lots of stacks that are conceptually the same but have very small variations. In an attempt to identify cases like these, I added stack frame records. A stack frame record is a merging of every stack trace record that had an allocation stack trace containing its stack frame. It was a reasonable idea, but in practice it's not useful. It's hard to understand and is dominated by functions like XRE_main() and NS_ProcessNextEvent(). I've barely used it and I doubt anyone else has.
Eric: other than me, you've looked at DMD as much as anyone has lately, so you might as well review this. Once it lands, I'll update the wiki page accordingly.
Attachment #8425168 - Flags: review?(erahm)
I've found it sort of useful before on some of my B2G skulking expeditions, but it feels like something that could easily be done in a post-processing step. I feel like it also ended up being a huge percentage of the total log, which make look around more annoying.
> it feels like something that could easily be done in a post-processing > step. Good point. A few dozen lines of Python could replicate a few hundred lines of C++.
Comment on attachment 8425168 [details] [diff] [review] DMD: Remove stack frame records Review of attachment 8425168 [details] [diff] [review]: ----------------------------------------------------------------- lgtm. I agree, if we need this functionality post processing is probably a better place. r=me
Attachment #8425168 - Flags: review?(erahm) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: