Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Accumulated Sizes?
Accumulated Sizes? [message #99497] Wed, 30 May 2007 16:09 Go to next message
Moritz Wissenbach is currently offline Moritz WissenbachFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

forgive me if this is a naive question.

I need to do some memory profiling on my Eclipse plugin, thus have
collected heap statistics (Memory Profiling with instance information)
with TPTP. Now I want to see which classes use up so incredibly much
memory.
I can sort classes by memory usage, but I think this is only the memory
taken by the reference (pointer-) fields of the class. What I really
needed is a sort of recursively accumulated size, that includes the sizes
of the member objects in heap and their members etc...

Is this possible with TPTP? I'm aware that it is not trivial, with cycle
checking and multiple-referenced objects and whatnot...
Is it stupid to even think think of something like this? It it possible in
theory? Are there other tools that do it?

I was thinking I needed this, because in the Eclipse runtime there is so
much going on. The class that uses most Memory is char arrays, and I can't
check where a 100.000 char arrays came from.
On the other hand, I can view the classes that I'm interested in, but
their sizes aren't representative.

Then, I'm a total newbie on mem profiling and/or TPTP, so I might miss
something fundamental.

Any pointers appreciated!

Moritz
Re: Accumulated Sizes? [message #99876 is a reply to message #99497] Sun, 03 June 2007 12:54 Go to previous message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Moritz,
>
> I need to do some memory profiling on my Eclipse plugin, thus have
> collected heap statistics (Memory Profiling with instance information)
> with TPTP. Now I want to see which classes use up so incredibly much
> memory.
> I can sort classes by memory usage, but I think this is only the memory
> taken by the reference (pointer-) fields of the class. What I really
> needed is a sort of recursively accumulated size, that includes the
> sizes of the member objects in heap and their members etc...
>
> Is this possible with TPTP? I'm aware that it is not trivial, with cycle
> checking and multiple-referenced objects and whatnot...

At the moment, this is not possible with TPTP. The object size you see
does not contain the size of the objects it references.

> Is it stupid to even think think of something like this? It it possible
> in theory? Are there other tools that do it?

This is a valid and useful use-case for memory profiling. While
technically possible (both in theory and in practice), it is not
currently in the plan for TPTP. I suggest you open an enhancement
request in Bugzilla (http://bugs.eclipse.org) for the TPTP Project (TPTP
Profiler, JVMTI Agent component) and I am positive it will be considered
for future versions.

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:problem running test suite in standard mode
Next Topic:JVMTI agent discovery not working
Goto Forum:
  


Current Time: Fri Apr 26 15:11:02 GMT 2024

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

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

Back to the top