Closed
Bug 726252
Opened 12 years ago
Closed 7 years ago
record number of XPConnect and purple roots in CC log
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mccr8, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
801.49 KB,
application/pdf
|
Details | |
1.33 KB,
patch
|
Details | Diff | Splinter Review |
If we print out the number of XPC and purple roots in the CC graph, then we can use that information to figure out why things are being included in the graph. I think we can just do this by adding a few fake nodes to the graph. That shouldn't mess up earlier versions of my script, and will make it easy to support both old and new logs in my scripts going forward. I've hacked up a test version of this. In the attached PDF, purple nodes are from the purple buffer, and red nodes are XPConnect roots.
Reporter | ||
Comment 1•12 years ago
|
||
One trickiness here is that XPConnect roots are added first, so if one of them is also in the purple buffer, we won't be able to tell. Another problem is that my current method for logging this is tied to the way we traverse the CC graph: add all roots, then traverse from the roots. If we changes to be more DFS, then it won't work. We could add a flag per-object to indicate it if is a root or not, or perhaps that is premature generalization.
Reporter | ||
Comment 2•12 years ago
|
||
For general use, you probably don't want gAlwaysLogCCGraphs to be true, and CollectTimeDebug may or may not be useful.
Reporter | ||
Comment 3•12 years ago
|
||
Attachment #597445 -
Attachment is obsolete: true
Updated•12 years ago
|
Assignee: nobody → continuation
Comment 4•12 years ago
|
||
Looks like this landed?
Reporter | ||
Comment 5•12 years ago
|
||
No, I just used it as a prototype to figure out what we should remove from the purple buffer. I'm not really sure what a nice way to do it is.
Reporter | ||
Comment 6•11 years ago
|
||
Unbitrotted this. Patch requires slightly flipping a variable in my dotify script.
Attachment #597447 -
Attachment is obsolete: true
Reporter | ||
Comment 7•9 years ago
|
||
I'm not actively working on this. I haven't needed anything like this for a while.
Assignee: continuation → nobody
Reporter | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•