Object References view doesn't [message #60836] |
Mon, 27 March 2006 22:05 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 -> 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.</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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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. 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.</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. 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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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. 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?</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 0002B48785257140_=--
|
|
|
|
Re: Object References view doesn't [message #62465 is a reply to message #62369] |
Thu, 30 March 2006 02:04 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03020 seconds