Closed
Bug 74920
Opened 24 years ago
Closed 13 years ago
new memory logging tool
Categories
(Core :: XPCOM, enhancement, P5)
Tracking
()
RESOLVED
WONTFIX
Future
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
(Whiteboard: [MemShrink])
Attachments
(1 file)
21.31 KB,
patch
|
Details | Diff | Splinter Review |
A few weeks ago I got a neat idea for (yet another) leak/bloat tool,
and rather than investigating how to integrate my ideas into
nsTraceMalloc (i.e., adding a post-processing tool for nsTraceMalloc
logfiles), I just went along and (in pockets of spare time over the
course of a week) wrote it. Whether or not that was a good idea, it's
done (and it was kinda fun to write, and not that hard).
So now I have a new tool lying around in my tree that can log (in
realtime) a tree showing sources of total allocation (in bytes or
allocation counts), sources of leaked allocations (in bytes), and/or
sources of allocation for the memory allocated at the time of maximum
memory usage (in bytes). At least that's what I think it does... I
haven't had much chance to test it yet. I also added a few new
features to nsVoidArray in order to do this.
And, since it's written, I shouldn't just keep it all to myself, so
diffs coming up, right here.
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
To use: set one of the following environment variables to "1", "2", or a
filename just as for the nsTraceRefcnt tools:
* XPCOM_BL_LEAK_LOG - log for allocations that leaked (in bytes)
* XPCOM_BL_ALLOC_LOG - log for total allocations (in allocation counts)
* XPCOM_BL_BLOAT_LOG - log for total allocations (in bytes)
* XPCOM_BL_MAX_LOG - log for active allocations at point of maximum memory
usage (in bytes)
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Comment 3•24 years ago
|
||
r=waterson on the nsVoidArray.[h|cpp] and nsQuickSort.h change.
Assignee | ||
Updated•24 years ago
|
Priority: -- → P2
Target Milestone: --- → mozilla0.9.2
Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla0.9.2 → Future
Assignee | ||
Updated•24 years ago
|
Priority: P2 → P5
Comment 4•24 years ago
|
||
Bug 90545 subsumes the nsVoidArray change. (The Sort stuff was already in; I
added MoveElement on my own, then found an almost identical implementation
here).
Assignee | ||
Comment 5•23 years ago
|
||
We don't really need this, although it might be neat to add another trace-malloc
reader that does something similar. That would require modifying trace-malloc
according to some of my earlier (more extensive) patches in bug 84831, since it
would require matching allocations and frees.
Severity: normal → enhancement
Updated•19 years ago
|
QA Contact: scc → xpcom
Updated•13 years ago
|
Whiteboard: [MemShrink]
Comment 6•13 years ago
|
||
It sounds like this has been superseded by a number of other tools (ref count logging, cachegrind, etc.) in the decade since it was filed.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Assignee | ||
Comment 7•13 years ago
|
||
Those tools aren't particularly relevant; however, diffbloatdump.pl does what this tool did.
You need to log in
before you can comment on or make changes to this bug.
Description
•