Package org.h2.test.utils
Class MemoryFootprint
java.lang.Object
org.h2.test.utils.MemoryFootprint
Calculate the memory footprint of various objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longGet the number of bytes required for the given object.static voidRun just this test.
-
Constructor Details
-
MemoryFootprint
public MemoryFootprint()
-
-
Method Details
-
main
Run just this test.- Parameters:
a- ignored
-
getObjectSize
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
-