public abstract class HeapAllocation extends Object
| Modifier and Type | Field and Description |
|---|---|
static HeapAllocation |
HEAP_ALLOCATION |
static HeapAllocation |
NOT_AVAILABLE |
| Constructor and Description |
|---|
HeapAllocation() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
allocatedBytes(long threadId)
Returns number of allocated bytes by the thread.
|
long |
allocatedBytes(Thread thread)
Returns number of allocated bytes by the thread.
|
public static final HeapAllocation HEAP_ALLOCATION
public static final HeapAllocation NOT_AVAILABLE
public final long allocatedBytes(Thread thread)
thread - the thread to get the used CPU time for.public abstract long allocatedBytes(long threadId)
threadId - the id of the thread to get the allocation information for.Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.