Package org.h2.test.coverage
Class Profile
- java.lang.Object
-
- java.lang.Thread
-
- org.h2.test.coverage.Profile
-
- All Implemented Interfaces:
java.lang.Runnable
public class Profile extends java.lang.ThreadThe class used at runtime to measure the code usage and performance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidlist()List all captured data.voidrun()static voidstartCollecting()Start collecting data.static voidstopCollecting()Stop collecting data.static voidvisit(int i)This method is called by an instrumented application whenever a line of code is executed.-
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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
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()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
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.
-
-