public class VMUtils extends Object
Constructor and Description |
---|
VMUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
getCurrentThreadCpuTime()
Returns the total CPU time for current thread.
|
static long |
getMaxDirectMemory() |
static boolean |
isThreadCpuTimeEnabled() |
static long |
safeGetThreadCpuTime() |
public static boolean isThreadCpuTimeEnabled()
public static long safeGetThreadCpuTime()
public static long getCurrentThreadCpuTime()
UnsupportedOperationException
- if the Java
virtual machine does not support CPU time measurement for
the current thread.public static long getMaxDirectMemory() throws UnsupportedOperationException
UnsupportedOperationException
Copyright © 2011–2017. All rights reserved.