|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
spec.harness.ProgramRunner
public class ProgramRunner
This class is derived from java.lang.Thread. The benchmark is started in a seperate thread. The benchmark implements a method harnessMain(). The run method of the Programmer runner calls the harnessMain() of the class that it dynamically creates, given its name.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
BenchmarkResult |
bmResult
The test result |
BenchmarkThread[] |
bmts
The tenchmark threads. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ProgramRunner(BenchmarkResult result,
int mode)
Overloaded constructor for the class. |
|
| Method Summary | |
|---|---|
static void |
endOfMeasurementInterval(long iterEndTime)
|
static int |
getNoBmHarnessThreads(BenchmarkResult bmResult)
|
static java.lang.String |
getStackTraceAsString(java.lang.Throwable t)
|
static void |
interruptProgramRunner()
|
void |
run()
The overloaded run method for the BenchmarkRunner. |
static void |
setPrintProgress(boolean printProgress)
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public BenchmarkResult bmResult
public BenchmarkThread[] bmts
| Constructor Detail |
|---|
public ProgramRunner(BenchmarkResult result,
int mode)
result - The Benchmark result where all results are stored. This also
includes configuration for the run.| Method Detail |
|---|
public static void setPrintProgress(boolean printProgress)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic static java.lang.String getStackTraceAsString(java.lang.Throwable t)
public static int getNoBmHarnessThreads(BenchmarkResult bmResult)
public static void interruptProgramRunner()
public static void endOfMeasurementInterval(long iterEndTime)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||