public class SizeOf extends Object
Constructor and Description |
---|
SizeOf() |
Modifier and Type | Method and Description |
---|---|
static void |
excludeClass(Class clazz)
Classes to exclude from sizeof.
|
static void |
main(String[] args) |
static void |
premain(String args,
Instrumentation instrumentation) |
static long |
sizeOf(Object objx)
Get the runtime size of an object, not including the size of any references.
|
static long |
sizeOf(Object objx,
boolean bIncludeReferences)
Get the runtime size of an object, with/out including the size of references.
|
public static void premain(String args, Instrumentation instrumentation)
public static void excludeClass(Class clazz)
clazz
- public static long sizeOf(Object objx)
public static long sizeOf(Object objx, boolean bIncludeReferences)
objx
- bIncludeReferences
- if true then all references are also included.public static void main(String[] args)
Copyright © 1999–2019 ViaOA. All rights reserved.