info.informatica.debug
Class Benchmark
java.lang.Object
info.informatica.debug.Benchmark
public final class Benchmark
- extends Object
Simple class for Benchmarks.
Allows primitive profiling/benchmarking.
- Version:
- 1.00
- Author:
- amengual at informatica dot info
counter
public static int[] counter
timer
public static long[] timer
acc
public static long[] acc
label
public static String[] label
Benchmark
public Benchmark()
enable
public static void enable(int n)
reset
public static void reset()
reset
public static void reset(int channel)
label
public static void label(int channel,
String s)
start
public static void start(int channel)
stop
public static int stop(int channel)
speed
public static float speed(int channel)
stop
public static int stop()
printStatus
public static void printStatus(PrintStream ps)
printStatus
public static void printStatus(PrintStream ps,
int channel)