MemoryFootprint
Calculate the memory footprint of various objects.
| Methods |
| static long |
getObjectSize(Object o)
Get the number of bytes required for the given object.
|
| static long |
getObjectSize(Object o)
Get the number of bytes required for the given object.
This method only works if the agent is set.
Parameters:
o - the object
Returns:
the number of bytes required
|
| static void |
main(String... a)
Run just this test.
|
| static void |
main(String... a)
Run just this test.
Parameters:
a - ignored
|