| |
|
| java.lang.Object junit.extensions.abbot.SizeOf
SizeOf | public class SizeOf (Code) | | |
Inner Class :public static interface ObjectCreator | |
Method Summary | |
public static long | getMemoryUse() | public static void | main(String[] args) Display the approximate size (in bytes) of the class given in the
first argument. | public static long | sizeof(ObjectCreator oc) Return the approximate size in bytes of the object returned by the
given ObjectCreator. | public static long | sizeof(Class cls) Return the approximate size in bytes of an instance of the given
class. |
getMemoryUse | public static long getMemoryUse()(Code) | | |
main | public static void main(String[] args)(Code) | | Display the approximate size (in bytes) of the class given in the
first argument.
|
sizeof | public static long sizeof(ObjectCreator oc)(Code) | | Return the approximate size in bytes of the object returned by the
given ObjectCreator.
|
sizeof | public static long sizeof(Class cls)(Code) | | Return the approximate size in bytes of an instance of the given
class. The class must provide a no-args constructor.
|
|
|
|