| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| public static final String | BYPASS_LOADING
System property name to bypass attaching to the VM and loading of Java agent to measure Object sizes. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AgentSizeOf(SizeOfFilter
The filter to apply filter)Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fields |
| public | AgentSizeOf(SizeOfFilter
The filter to apply filter, boolean whether to cache reflected fields caching)Builds a new SizeOf that will filter fields according to the provided filter |
| Modifier and Type | Method and Description |
|---|---|
| public long | sizeOf(Object
the object to measure the size of obj)Implements abstract net. |
| AGENT_LOADED | back to summary |
|---|---|
| private static final boolean AGENT_LOADED | |
| BYPASS_LOADING | back to summary |
|---|---|
| public static final String BYPASS_LOADING System property name to bypass attaching to the VM and loading of Java agent to measure Object sizes. | |
| AgentSizeOf | back to summary |
|---|---|
| public AgentSizeOf() throws UnsupportedOperationException Builds a new SizeOf that will not filter fields and will cache reflected fields
| |
| AgentSizeOf | back to summary |
|---|---|
| public AgentSizeOf(SizeOfFilter filter) throws UnsupportedOperationException Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fields
| |
| AgentSizeOf | back to summary |
|---|---|
| public AgentSizeOf(SizeOfFilter filter, boolean caching) throws UnsupportedOperationException Builds a new SizeOf that will filter fields according to the provided filter
| |
| sizeOf | back to summary |
|---|---|
| public long sizeOf(Object obj) Implements abstract net. Doc from net. Calculates the size in memory (heap) of the instance passed in, not navigating the down graph | |