Class Profile

java.lang.Object
java.lang.Thread
org.h2.test.coverage.Profile
All Implemented Interfaces:
Runnable

public class Profile extends Thread
The class used at runtime to measure the code usage and performance.
  • 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()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class 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.