Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Object References view doesn't
Object References view doesn't [message #60836] Mon, 27 March 2006 22:05 Go to next message
Eclipse UserFriend
Originally posted by: jlussmyer.myrio.com

I've been attempting to use Eclipse with TPTP to profile an application.
All running under Eclipse 3.1.2 with TPTP 4.1.0.1.

I can get the app to run, and it appears to be collecting data about
memory usage. I followed the instructions for the "Memory Statistics"
view to gather instance data. It does seem to be gathering instance data
as I can expand the class name into a huge list of instances.
The problem is that when I bring up the Object References view, I get a
simple list of classes. No "[+]" to expand to see more information.
"Show Reference By" and "Show Reference To" look exactly the same.
The "Number of references" column is empty. As is the "Details" column.

How can I get the "Object References" view to actually let me see the
reference tree?
Re: Object References view doesn't [message #60866 is a reply to message #60836] Tue, 28 March 2006 02:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 000C9A3C8525713F_=
Content-Type: text/plain; charset="US-ASCII"

In your profile launch configuration, select the profiling tab -> Select
the memory analysis -> Edit -> Next -> select basic memory analysis ->
click on advanced -> Check 'collect instance level information' -> next ->
set your filter set -> finish -> profile.

I'm guessing you didn't check the 'collect instance level information'
button.

Navid Mehregani
--=_alternative 000C9A3C8525713F_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">In your profile launch configuration,
select the profiling tab -&gt; Select the memory analysis -&gt; Edit -&gt;
Next -&gt; select basic memory analysis -&gt; click on advanced -&gt; Check
'collect instance level information' -&gt; next -&gt; set your filter set
-&gt; finish -&gt; profile.</font>
<br>
<br><font size=2 face="sans-serif">I'm guessing you didn't check the 'collect
instance level information' button.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani </font>
--=_alternative 000C9A3C8525713F_=--
Re: Object References view doesn't [message #61240 is a reply to message #60866] Tue, 28 March 2006 16:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jlussmyer.myrio.com

Nope, just rechecked that.
The "Collect instance level information" is checked for both "Basic Memory
Analysis" and "Execution Time Analysis".
Note that I DID have instance level information on the "Memory Statistics"
view, but not in the "Object References" view.

Any other suggestions?
Re: Object References view doesn't [message #61646 is a reply to message #61240] Tue, 28 March 2006 21:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0077418D8525713F_=
Content-Type: text/plain; charset="US-ASCII"

Actually that view gives you a snapshot of your heap. You'll need to
click on the 'Collect object references' button in the profiling monitor
view during your profiling session in order for the view to be populated
with the objects in your heap. The Collect object references button has 3
horizontal bars on it and a green triangle.

Your filters are not applied for this view and as far as I know, it
captures everything in your heap. It collects a lot of data so that's why
the user is required to click on the button whenever they want to populate
this view.

Navid Mehregani
--=_alternative 0077418D8525713F_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Actually that view gives you a snapshot
of your heap. &nbsp;You'll need to click on the 'Collect object references'
button in the profiling monitor view during your profiling session in order
for the view to be populated with the objects in your heap. &nbsp;The Collect
object references button has 3 horizontal bars on it and a green triangle.</font>
<br>
<br><font size=2 face="sans-serif">Your filters are not applied for this
view and as far as I know, it captures everything in your heap. &nbsp;It
collects a lot of data so that's why the user is required to click on the
button whenever they want to populate this view.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 0077418D8525713F_=--
Re: Object References view doesn't [message #61715 is a reply to message #61646] Tue, 28 March 2006 22:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jlussmyer.myrio.com

Well, I DID right-click and select "Collect Object References".
No change.
I still don't have any actual instance data in the Object References view.
I've tried that both near the beginning of the run, and much later when
tehre are LOTS of objects in use. No difference.
Re: Object References view doesn't [message #61786 is a reply to message #61715] Wed, 29 March 2006 00:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0002B48785257140_=
Content-Type: text/plain; charset="US-ASCII"

This view only shows you the objects in your heap. For example, objects
declared as instance variables in your class. When you collect your
object references, are you sure you have any objects in your heap?

Navid Mehregani
--=_alternative 0002B48785257140_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">This view only shows you the objects
in your heap. &nbsp;For example, objects declared as instance variables
in your class. &nbsp;When you collect your object references, are you sure
you have any objects in your heap?</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 0002B48785257140_=--
Re: Object References view doesn't [message #62369 is a reply to message #61786] Wed, 29 March 2006 18:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jlussmyer.myrio.com

Well, since there are hundreds of objects of many classes, there must be
SOMETHING in the heap.
Just to make sure that we are talking about the same things, I've taken
screenshots of various things and posted them on my website:

Profile Configuration:
http://www.casadelgato.com/tptp/Profile1.gif
http://www.casadelgato.com/tptp/Profile2.gif

Memory Statistics Views:
http://www.casadelgato.com/tptp/MemStatsGeneral.gif
http://www.casadelgato.com/tptp/MemStatsInstance.gif

Object References View:
http://www.casadelgato.com/tptp/ObjRefsBy.gif

I did use the "Collect Object References" entry from the right-click menu
several times during the run.
I never noticed any change to the views when using it. (Is it supposed to
display a checkmark or some indication that it is active?)
Re: Object References view doesn't [message #62465 is a reply to message #62369] Thu, 30 March 2006 02:04 Go to previous message
Eclipse UserFriend
Originally posted by: jlussmyer.myrio.com

John Lussmyer wrote:

I built a tiny little app that just looped and allocated memory into
ArrayLists.
Using this, I could SOMETIMES get instance data for the Object References
view.
A) The app MUST execute normally. If you terminate it early, instance
data won't be collected.
B) You usually have to refresh the view a few times before it shows up.

So I went back to my big app and tried again.
This time, by NOT starting profiling until the app was well underway, and
allowing it to finish normally, I got SOME instance data!
Of course, now the data seems rather weird.
See "Finding Memory Usage" thread.
Previous Topic:Sending data to File disables views?
Next Topic:Where is the memory usage?
Goto Forum:
  


Current Time: Thu Apr 25 08:57:02 GMT 2024

Powered by FUDForum. Page generated in 0.03805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top