Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compartments filter/search term? #7

Open
Quicksaver opened this issue Apr 7, 2012 · 3 comments
Open

Compartments filter/search term? #7

Quicksaver opened this issue Apr 7, 2012 · 3 comments

Comments

@Quicksaver
Copy link

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
Copy link
Owner

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:
#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
Copy link
Owner

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:
#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.

@Quicksaver
Copy link
Author

(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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants