public class AllocationMeasure extends Object
| Constructor and Description |
|---|
AllocationMeasure() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
long |
markAllocations()
Calculates the number of bytes allocated since the last reset.
|
void |
printAllocations(CharSequence marker) |
void |
reset() |
public AllocationMeasure()
throws IllegalStateException
IllegalStateExceptionpublic static void main(String[] args) throws IllegalStateException
IllegalStateExceptionpublic void reset()
throws IllegalStateException
IllegalStateExceptionpublic long markAllocations()
throws IllegalStateException
IllegalStateExceptionpublic void printAllocations(CharSequence marker) throws IllegalStateException
IllegalStateExceptionCopyright © 2018. All rights reserved.