Closed
Bug 1470268
Opened 7 years ago
Closed 7 years ago
Add ability to filter allocations reported by dmd.py
Categories
(Core :: DMD, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla62
| Tracking | Status | |
|---|---|---|
| firefox62 | --- | fixed |
People
(Reporter: erahm, Assigned: erahm)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
2.33 KB,
patch
|
n.nethercote
:
review+
|
Details | Diff | Splinter Review |
As a user I'd like to be able to limit the output of dmd.py to only include stacks that go through certain pieces of code. For example I'd like investigate font related allocations that come from 'libfontconfig' without have to look at other allocations.
| Assignee | ||
Comment 1•7 years ago
|
||
This adds an '--allocation-filter' param that can be used to limit output to
only allocations that include the filter in their stack. For example:
dmd.py --allocation-filter fontconfig dmd.json.gz
limits its output to just allocations that have an instance of 'fontconfig' in
in one of their stack frames.
Attachment #8986879 -
Flags: review?(n.nethercote)
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → erahm
Status: NEW → ASSIGNED
Comment 2•7 years ago
|
||
Comment on attachment 8986879 [details] [diff] [review]
Add allocation filter to dmd.py
Review of attachment 8986879 [details] [diff] [review]:
-----------------------------------------------------------------
It would be nice to have a test, but getting reliable stacks is hard.
Attachment #8986879 -
Flags: review?(n.nethercote) → review+
| Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Nicholas Nethercote [:njn] from comment #2)
> Comment on attachment 8986879 [details] [diff] [review]
> Add allocation filter to dmd.py
>
> Review of attachment 8986879 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> It would be nice to have a test, but getting reliable stacks is hard.
I'll file a follow-up for adding pure python tests + synthetic dmd.json files.
| Assignee | ||
Comment 4•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3b8204a5fa3ab24e1d06db75a5748cb5c47a8475
Bug 1470268 - Add allocation filter to dmd.py. r=njn
Comment 5•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•