Bug 394983 - All References (memory) search: should be able to follow the tree/graph
Summary: All References (memory) search: should be able to follow the tree/graph
Status: REOPENED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.8.1   Edit
Hardware: PC Windows 8
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-23 10:55 EST by Johan Compagner CLA
Modified: 2012-11-27 06:45 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Compagner CLA 2012-11-23 10:55:32 EST
Now we seem to be able go get only to the parent, but for example if the Object is hold on to in a ArrayList then we see that it is hold on to an Object[] but that is not really useful, it would be much better if we could collapse the tree so that we see the ArrayList (that holds the Object[]) and then what object the ArrayList holds and so on.
Comment 1 Curtis Windatt CLA 2012-11-23 11:58:08 EST
I believe what you are looking for is already available in logical structures.  Logical structures change the structure of variables to display more convenient information.

Here is a blog talking about it:
http://waynebeaton.wordpress.com/2007/03/27/show-logical-structure/

There already exists logical structures for lists.  You can contribute your own via plugin.xml or on the Java > Debug > Logical Structures preference page.
Comment 2 Johan Compagner CLA 2012-11-23 12:13:36 EST
No this has nothing to do with logical structures...
The problem is that i see the structure (logical or not) of the objects that references the object i ask "All references" for

For example i am in the debugger
in the variables view i have "this"

i click on "this" and then do "All references"
then i get a popup dialog like a kind of outline view
Where it says 

"this references from"
and then the list/tree of all the objects that did reference the "this" object

But when i collapse 1 item of that object, i get the logical or not view of that object, But that is not what i want to see (or what i only want to see)
i want to see as a memory profiler, what is really referencing that object again
Because the 1 level deep doesn't tell me anything. 
For example the first entry in that list/tree i have another object, if i expand that node then yes i see a entry that is my "this" entry. thats all fine, but now i want to know where that object is referenced. Because this 1 reference deep doesn't tell me much, i need to go to the GC Root.. (or at least way further down) to really see what object is really keeping a reference to my object where i ask "all references" on. Most of the time those intermediate objects are not important
Comment 3 Curtis Windatt CLA 2012-11-23 12:33:37 EST
We added support to display references in the variables view, rather than the popup.  On the variable view menu, Java > Show References.

If you want a complete map of the references for memory profiling, you are better off using a profiler such as YourKit.
Comment 4 Johan Compagner CLA 2012-11-27 06:45:42 EST
yes i use profilers a lot but finding the references directly at debug time is sometimes very handy.
The feature we now have is not really helpful at all, going one down/deeper is most of the time not really helpful.

It is currently a bit possible i think by constantly inspecting the object that is a referring one again and then doing there the find reference again on.
But it would be way nicer if that was just in the popup. So that we have besides the objects internals tree. Also a item that shows the references again of that object