Package EDU.purdue.cs.bloat.benchmark
Class Benchmark
- java.lang.Object
-
- EDU.purdue.cs.bloat.benchmark.Benchmark
-
public class Benchmark extends java.lang.ObjectThis class is used to run a benchmark Java program with Perfmon running in the background. Perfmon is a software package developed at Michigan State University that allows user-level programs to access the hardware counters on Sparc processors.The main method of this class takes several arguments (note that the first four arguments are mutually exclusive):
-inst-load-stall Count load interlock induced stalls -dcache Count data cache hit rate -cycle-ic-miss-stall Count I-cache miss induced stalls (and cycles) -inst-cycle Count instructions (and cycles) -run n How many times is the program run class Java class to run (the benchmark) args Arguments to benchmark classThe real work is done by the native run method that is implemented in benchmark.c.- See Also:
BenchmarkSecurityManager
-
-
Constructor Summary
Constructors Constructor Description Benchmark()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinit(java.lang.Class main)static voidmain(java.lang.String[] args)static voidrun(java.lang.Class main, java.lang.String[] args)static voidsetMode(int mode)
-