edu.ucla.util
Class JVMTI

Object
  extended by JVMTI

public class JVMTI
extends Object

Access point for the Sun JVM Tool Interface (JVMTI). Since profiling requires special vm initialization, you must use the command line vm option "-Xruncalljvmti". That option loads the native library with filename:
calljvmti.dll on Windows
libcalljvmti.jnilib on Mac
libcalljvmti.so on Linux and Solaris

Since:
20060313
Author:
keith cascio

Constructor Summary
JVMTI()
           
 
Method Summary
static long getCurrentThreadCpuTime()
          Call this method from a user application to report running times to a user.
static long getCurrentThreadCpuTimeUnsafe()
          WARNING: Call this method from test code only.
static boolean isLoaded()
           
static boolean isProfilerRunning()
           
static void main(String[] args)
          Test/debug
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVMTI

public JVMTI()
Method Detail

isLoaded

public static boolean isLoaded()

getCurrentThreadCpuTimeUnsafe

public static long getCurrentThreadCpuTimeUnsafe()
WARNING: Call this method from test code only. This method exists in order to provide the same information as getCurrentThreadCpuTime(), but without any safety checks or exception handling.

See Also:
getCurrentThreadCpuTime()

getCurrentThreadCpuTime

public static long getCurrentThreadCpuTime()
Call this method from a user application to report running times to a user.


isProfilerRunning

public static boolean isProfilerRunning()

main

public static void main(String[] args)
Test/debug



Copyright 2010 UCLA Automated Reasoning Group