Object Introspection

Questions about YourKit Java Profiler
Post Reply
Roger Lindsjö
Posts: 1
Joined: Tue Oct 19, 2004 6:02 am

Object Introspection

Post by Roger Lindsjö »

Is it possible to view the values of primitives in a memory dump. For example, view the charaters in a char array, the value of an integer member and so on.

I did not find this from the documentation, but it would be very useful sometimes. If it is not possible to day, is that something you vould concider adding in a future release?
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Is it possible to view the values of primitives in a memory dump.
No, it's not possible and we are not planning to implement this in the future. The reason is that snapshot file with these promitive values consumes _huge_ amount of memory (much more than initial profiled application). Instead primitives, you can introspect Strings. There is an action "Find | String by pattern" which helps to find particular string. As iour experience shows, strings are enogh to identify objects.
artur
Posts: 1
Joined: Thu Oct 28, 2004 2:42 pm

Post by artur »

Vladimir Kondratyev wrote:
Is it possible to view the values of primitives in a memory dump.
No, it's not possible and we are not planning to implement this in the future. The reason is that snapshot file with these promitive values consumes _huge_ amount of memory (much more than initial profiled application). Instead primitives, you can introspect Strings. There is an action "Find | String by pattern" which helps to find particular string. As iour experience shows, strings are enogh to identify objects.
Since you do keep track of String objects it would be nice to see contents of a member once you navigate to it.
So, for example if I select TextImpl object from xerces and navigate
down to the String data member it would be nice to see the String
values there.

Artur....
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

There's no data shown under String.data, instead for each String instance its value is shown. (Strings are excection of the 'do not store primitive values' rule.)
Post Reply