info.informatica.debug
Class Benchmark

java.lang.Object
  extended by 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

Field Summary
static long[] acc
           
static int[] counter
           
static String[] label
           
static long[] timer
           
 
Constructor Summary
Benchmark()
           
 
Method Summary
static void enable(int n)
           
static void label(int channel, String s)
           
static void printStatus(PrintStream ps)
           
static void printStatus(PrintStream ps, int channel)
           
static void reset()
           
static void reset(int channel)
           
static float speed(int channel)
           
static void start(int channel)
           
static int stop()
           
static int stop(int channel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counter

public static int[] counter

timer

public static long[] timer

acc

public static long[] acc

label

public static String[] label
Constructor Detail

Benchmark

public Benchmark()
Method Detail

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)