recordAdditionalProfilerOwnThread(Thread specialThread) Records a given thread as a profiler's own thread, so that targetAppTreadsExist() does not treat it as a
target app thread.
Returns all live Java threads in this JVM. If the number of threads fits into the threads array, it is reused
(unused elements are filled with nulls). Otherwise, or if threads is null, a new array is created.
getJVMArguments
native public static String getJVMArguments()(Code)
getJavaCommand
native public static String getJavaCommand()(Code)
getThreadsStatus
native public static void getThreadsStatus(Thread[] threads, int[] status)(Code)
For each passed thread, stores its status as defined in CommonConstants, in the status array. threads may contain nulls.
getTotalNumberOfThreads
native public static int getTotalNumberOfThreads()(Code)
native public static void recordAdditionalProfilerOwnThread(Thread specialThread)(Code)
Records a given thread as a profiler's own thread, so that targetAppTreadsExist() does not treat it as a
target app thread. Note that the current implementation allows only one additional profiler thread; if this
is called more than once, only the latest thread is remembered.
recordProfilerOwnThreads
native public static int recordProfilerOwnThreads(boolean excludeSpecialThread, Thread specialThread)(Code)
Record profiler's own threads. If excludeSpecialThread is true, recocrd all the Java threads currently existing
in this JVM, minus specialThread. Otherwise, record only the specialThread. Returns the number of recorded threads.
resumeTargetAppThreads
native public static synchronized void resumeTargetAppThreads(Thread excludedThread)(Code)
suspendTargetAppThreads
native public static synchronized void suspendTargetAppThreads(Thread excludedThread)(Code)
targetAppThreadsExist
native public static boolean targetAppThreadsExist()(Code)
Checks if any live target application threads still exist. A target application thread is any thread not recorded
previously by recordProfilerOwnThreads() or recordAdditionalProfilerOwnThread().
terminateTargetAppThreads
public static void terminateTargetAppThreads()(Code)
terminateTargetAppThreads
native public static void terminateTargetAppThreads(Object exception)(Code)