Package org.h2.test.coverage
Class Profile
java.lang.Object
java.lang.Thread
org.h2.test.coverage.Profile
- All Implemented Interfaces:
Runnable
The class used at runtime to measure the code usage and performance.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Method Details
-
visit
public static void visit(int i) This method is called by an instrumented application whenever a line of code is executed.- Parameters:
i- the line number that is executed
-
run
public void run() -
startCollecting
public static void startCollecting()Start collecting data. -
stopCollecting
public static void stopCollecting()Stop collecting data. -
list
public static void list()List all captured data.
-