Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGroup by attribute
https://www.eclipse.org/forums/index.php/mv/msg/1082175/1746529/#msg_1746529
Here's my case: using Memory Analyzer I discovered that all the instances of one specific class of ours consumes around 56 megabytes. Given that this class has eight attributes, I'd like to sum how much each field consumes.
I'd expect to get a report where I could see that attribute A consumes 10 MB, attribute B consumes 30 MB, etc.
Is it possible to be done using Memory Analyzer?
----
Mario Marinato, from Brazil]]>Mario Marinato2016-10-31T18:06:47-00:00Re: Group by attribute
https://www.eclipse.org/forums/index.php/mv/msg/1082175/1752189/#msg_1752189
Java Basics > References > Reference Statistics
on all the objects with 'referent_attribute' as the field name you wish to consider.
Histogram of referent objects
This shows the objects directly referred to by the field. You could do a calculated retained size or show retained set of these objects - but consider what the meaning is if those referent objects are reachable from elsewhere.
Only retained by referents
This shows the objects which are only retained via the field, so if that field were cleared those objects could be freed.
Referents strongly retained by references
Probably not useful to you, but these are the direct referents via the field which are also reachable from the base object via another route. This is useful for weak hashmaps where some referents happen to be reachable from say the key field so can't be freed.
]]>Andrew Johnson2017-01-19T15:22:06-00:00