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)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mccr8, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 2 obsolete files)

Attached file CC graph roots
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.
Blocks: 726331
Blocks: 726340
Blocks: 726442
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.
Attached patch hacky patch (obsolete) — Splinter Review
For general use, you probably don't want gAlwaysLogCCGraphs to be true, and CollectTimeDebug may or may not be useful.
Attached patch oops wrong patch (obsolete) — Splinter Review
Attachment #597445 - Attachment is obsolete: true
Assignee: nobody → continuation
Looks like this landed?
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.
Unbitrotted this.  Patch requires slightly flipping a variable in my dotify script.
Attachment #597447 - Attachment is obsolete: true
I'm not actively working on this. I haven't needed anything like this for a while.
Assignee: continuation → nobody
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.

Attachment

General

Created:
Updated:
Size: