ccdump icon indicating copy to clipboard operation
ccdump copied to clipboard

Compartments filter/search term?

Open Quicksaver opened this issue 13 years ago • 3 comments

Hi I wonder if it would be at all possible to add some kind of filter or search capability to only show results related to a specific compartments (as shown in the about:compartments page).

For example, I know one of the add-ons I'm developping causes a zombie compartment sometimes (see https://bugzilla.mozilla.org/show_bug.cgi?id=743318 for details). Seeing as I don't know what exactly is causing the zombie compartment, I have no idea what I should be searching for in the ccdump objects list, and because I can't reproduce it all the time, especially at startup when the number of objects reported by ccdump is still low, it's nearly impossible to go through everything in the ccdump graph, even if I did that I probably wouldn't recognize it since, once again, I don't know what I'm looking for.

This is what brings me to my question/suggestion. If we could tell ccdump to "only show objects related to X-Compartment", where X-Compartment is as shown in the about:compartments, would be a great help. Do you think this is possible? If not, I'd really appreciate any suggestions you might have about my problem.

Quicksaver avatar Apr 07 '12 09:04 Quicksaver

Hi

Hi I wonder if it would be at all possible to add some kind of filter or search capability to only show results related to a specific compartments (as shown in the about:compartments page). Yep agree, this would be useful

The problem is that the nsICycleCollectorListener (used to get the CC object graph) doesn't provide an info about the parent compartment

I am CCing Olli.

Olli, do you think we could get this kind of somewhere? Or could it be added to the CC graph log?

Honza

For example, I know one of the add-ons I'm developping causes a zombie compartment sometimes (see https://bugzilla.mozilla.org/show_bug.cgi?id=743318 for details). Seeing as I don't know what exactly is causing the zombie compartment, I have no idea what I should be searching for in the ccdump objects list, and because I can't reproduce it all the time, especially at startup when the number of objects reported by ccdump is still low, it's nearly impossible to go through everything in the ccdump graph, even if I did that I probably wouldn't recognize it since, once again, I don't know what I'm looking for.

This is what brings me to my question/suggestion. If we could tell ccdump to "only show objects related to X-Compartment", where X-Compartment is as shown in the about:compartments, would be a great help. Do you think this is possible? If not, I'd really appreciate any suggestions you might have about my problem.


Reply to this email directly or view it on GitHub: https://github.com/janodvarko/ccdump/issues/7

Hi I wonder if it would be at all possible to add some kind of filter or search capability to only show results related to a specific compartments (as shown in the about:compartments page).

For example, I know one of the add-ons I'm developping causes a zombie compartment sometimes (see https://bugzilla.mozilla.org/show_bug.cgi?id=743318 for details). Seeing as I don't know what exactly is causing the zombie compartment, I have no idea what I should be searching for in the ccdump objects list, and because I can't reproduce it all the time, especially at startup when the number of objects reported by ccdump is still low, it's nearly impossible to go through everything in the ccdump graph, even if I did that I probably wouldn't recognize it since, once again, I don't know what I'm looking for.

This is what brings me to my question/suggestion. If we could tell ccdump to "only show objects related to X-Compartment", where X-Compartment is as shown in the about:compartments, would be a great help. Do you think this is possible? If not, I'd really appreciate any suggestions you might have about my problem.

janodvarko avatar Apr 10 '12 11:04 janodvarko

On 04/10/2012 02:32 PM, Jan Odvarko wrote:

Hi

Hi I wonder if it would be at all possible to add some kind of filter or search capability to only show results related to a specific compartments (as shown in the about:compartments page). Yep agree, this would be useful

The problem is that the nsICycleCollectorListener (used to get the CC object graph) doesn't provide an info about the parent compartment

I am CCing Olli.

Olli, do you think we could get this kind of somewhere? Or could it be added to the CC graph log?

CC graph is about C++ objects (and possible JS object between some C++ objects). It doesn't really know anything about compartments

Honza

For example, I know one of the add-ons I'm developping causes a zombie compartment sometimes (see https://bugzilla.mozilla.org/show_bug.cgi?id=743318 for details). Seeing as I don't know what exactly is causing the zombie compartment, I have no idea what I should be searching for in the ccdump objects list, and because I can't reproduce it all the time, especially at startup when the number of objects reported by ccdump is still low, it's nearly impossible to go through everything in the ccdump graph, even if I did that I probably wouldn't recognize it since, once again, I don't know what I'm looking for.

This is what brings me to my question/suggestion. If we could tell ccdump to "only show objects related to X-Compartment", where X-Compartment is as shown in the about:compartments, would be a great help. Do you think this is possible? If not, I'd really appreciate any suggestions you might have about my problem.


Reply to this email directly or view it on GitHub: https://github.com/janodvarko/ccdump/issues/7

Hi I wonder if it would be at all possible to add some kind of filter or search capability to only show results related to a specific compartments (as shown in the about:compartments page).

For example, I know one of the add-ons I'm developping causes a zombie compartment sometimes (see https://bugzilla.mozilla.org/show_bug.cgi?id=743318 for details). Seeing as I don't know what exactly is causing the zombie compartment, I have no idea what I should be searching for in the ccdump objects list, and because I can't reproduce it all the time, especially at startup when the number of objects reported by ccdump is still low, it's nearly impossible to go through everything in the ccdump graph, even if I did that I probably wouldn't recognize it since, once again, I don't know what I'm looking for.

This is what brings me to my question/suggestion. If we could tell ccdump to "only show objects related to X-Compartment", where X-Compartment is as shown in the about:compartments, would be a great help. Do you think this is possible? If not, I'd really appreciate any suggestions you might have about my problem.

janodvarko avatar Apr 10 '12 11:04 janodvarko

(I know nothing about the way either CC graph or the about:compartments page work, so this may be a stupid question, but) Is there no way to join the two types of information? Maybe if the compartments found are related to a memory address or a list of memory addresses, all the objects related to those addresses would probably belong to those compartments?

Or not, maybe I'm completely wrong, like I said I know nothing about either of these systems and even less about programming at this level, I just find it odd that we are able to obtain both kinds of information but unable to connect the two. Maybe this is something worth opening a bug in mozilla's bugzilla too?

Quicksaver avatar Apr 10 '12 19:04 Quicksaver