jprofiler - Calculate total memory usage of any object in Java -
this question has answer here:
- in java, best way determine size of object? 22 answers
i'm using jprofiler. have objects of class x. class has many properties of type string, integer , other class types. want know how memory being consumed single object of class x.
when use jprofile find memory usage, size of object of type x. i'm assuming, jprofiler not showing memory used member variables. example, string property of class x contributing total memory used string.
i want figure out total memory usage of class x including memory used property objects. information on how achieve using jprofile or other tool/code?
thanks in advance!
this tool shows total memory used object
it not show memory uses itself, how memory remains active due references has.
Comments
Post a Comment