public class Instruments extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
SIZE_BOOLEAN
The Constant SIZE_BOOLEAN.
|
static long |
SIZE_BYTE
The Constant SIZE_BYTE.
|
static long |
SIZE_CHAR
The Constant SIZE_CHAR.
|
static long |
SIZE_DOUBLE
The Constant SIZE_DOUBLE.
|
static long |
SIZE_FLOAT
The Constant SIZE_FLOAT.
|
static long |
SIZE_INT
The Constant SIZE_INT.
|
static long |
SIZE_LONG
The Constant SIZE_LONG.
|
static long |
SIZE_OBJECT
The Constant SIZE_OBJECT.
|
static long |
SIZE_REFERENCE
The Constant SIZE_REFERENCE.
|
static long |
SIZE_SHORT
The Constant SIZE_SHORT.
|
static long |
SIZE_VOID
The Constant SIZE_VOID.
|
| Constructor and Description |
|---|
Instruments() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Field |
findField(Class<T> clazz,
String name)
Find field.
|
static Object |
getField(Object obj,
String name)
Gets the field.
|
static boolean |
isInitialized()
Checks if is initialized.
|
static long |
sizeOf(Object obj)
Size of.
|
static long |
sizeOf(Object obj,
ClassLoader cl)
Size of.
|
static long |
sizeOf(Object obj,
Set<Object> objects)
Size of.
|
public static final long SIZE_VOID
public static final long SIZE_BOOLEAN
public static final long SIZE_BYTE
public static final long SIZE_CHAR
public static final long SIZE_SHORT
public static final long SIZE_INT
public static final long SIZE_LONG
public static final long SIZE_FLOAT
public static final long SIZE_DOUBLE
public static final long SIZE_OBJECT
public static final long SIZE_REFERENCE
public static long sizeOf(Object obj)
obj - the objpublic static long sizeOf(Object obj, ClassLoader cl)
obj - the objcl - the clpublic static long sizeOf(Object obj, Set<Object> objects)
obj - the objobjects - the objectspublic static boolean isInitialized()
public static Object getField(Object obj, String name)
obj - the objname - the nameCopyright © 2009–2020 psi-probe. All rights reserved.