public static class BTraceUtils.Sys.VM
extends java.lang.Object
Constructor and Description |
---|
BTraceUtils.Sys.VM() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
bootClassPath()
Returns the boot class path that is used by the bootstrap class loader
to search for class files.
|
static java.lang.String |
classPath()
Returns the Java class path that is used by the system class loader
to search for class files.
|
static long |
currentThreadCpuTime()
Returns the total CPU time for the current thread in nanoseconds.
|
static long |
currentThreadUserTime()
Returns the CPU time that the current thread has executed
in user mode in nanoseconds.
|
static long |
daemonThreadCount()
Returns the current number of live daemon threads.
|
static boolean |
isBootClassPathSupported()
Tests if the Java virtual machine supports the boot class path
mechanism used by the bootstrap class loader to search for class
files.
|
static java.lang.String |
libraryPath()
Returns the Java library path.
|
static long |
peakThreadCount()
Returns the peak live thread count since the Java virtual machine
started or peak was reset.
|
static void |
printVmArguments()
Prints VM input arguments list.
|
static long |
threadCount()
Returns the current number of live threads including both
daemon and non-daemon threads.
|
static long |
totalStartedThreadCount()
Returns the total number of threads created and also started
since the Java virtual machine started.
|
static java.util.List<java.lang.String> |
vmArguments()
Returns the input arguments passed to the Java virtual machine
which does not include the arguments to the main method.
|
static long |
vmStartTime()
Returns the start time of the Java virtual machine in milliseconds.
|
static long |
vmUptime()
Returns the uptime of the Java virtual machine in milliseconds.
|
static java.lang.String |
vmVersion()
Returns the Java virtual machine implementation version.
|
public static java.util.List<java.lang.String> vmArguments()
Some Java virtual machine implementations may take input arguments from multiple different sources: for examples, arguments passed from the application that launches the Java virtual machine such as the 'java' command, environment variables, configuration files, etc.
Typically, not all command-line options to the 'java' command are passed to the Java virtual machine. Thus, the returned input arguments may not include all command-line options.
public static void printVmArguments()
vmArguments()
public static java.lang.String vmVersion()
public static boolean isBootClassPathSupported()
public static java.lang.String bootClassPath()
Multiple paths in the boot class path are separated by the path separator character of the platform on which the Java virtual machine is running.
A Java virtual machine implementation may not support
the boot class path mechanism for the bootstrap class loader
to search for class files.
The isBootClassPathSupported()
method can be used
to determine if the Java virtual machine supports this method.
java.lang.UnsupportedOperationException
- if the Java virtual machine does not support this operation.public static java.lang.String classPath()
public static java.lang.String libraryPath()
Multiple paths in the Java library path are separated by the path separator character of the platform of the Java virtual machine being monitored.
public static long threadCount()
public static long peakThreadCount()
public static long totalStartedThreadCount()
public static long daemonThreadCount()
public static long vmStartTime()
public static long vmUptime()
public static long currentThreadCpuTime()
public static long currentThreadUserTime()