This commit is contained in:
Timothy Hunter 2016-06-28 12:00:04 -07:00
parent 5c1990e4ff
commit 353dc0c873
2 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ abstract class Benchmark(
forkThread: Boolean = true) = {
new ExperimentStatus(executionsToRun, includeBreakdown, iterations, variations, tags,
timeout, resultLocation, sqlContext, allTables, currentConfiguration)
timeout, resultLocation, sqlContext, allTables, currentConfiguration, forkThread = forkThread)
}

View File

@ -45,9 +45,9 @@ trait Benchmarkable extends Logging {
sparkContext.setJobDescription(s"Execution: $name, $description")
beforeBenchmark()
val result = if (forkThread) {
doBenchmark(includeBreakdown, description, messages)
} else {
runBenchmarkForked(includeBreakdown, description, messages, timeout)
} else {
doBenchmark(includeBreakdown, description, messages)
}
afterBenchmark(sqlContext.sparkContext)
result