Commit 90a0ca31 authored by Noric Couderc's avatar Noric Couderc
Browse files

Flush buffer for every benchmark data

I'm doing this, hoping that it prevents problems memory leaks in the
when writing the feature vectors to a file.
parent 33190962
......@@ -39,6 +39,7 @@ abstract class SyntheticBenchmarkDataPrinter(out : Writer,
for (syntheticBenchmark in syntheticBenchmarks) {
System.out.println("Printing benchmark: %s".format(syntheticBenchmark.benchmarkIdentifier))
printBenchmarkRows(syntheticBenchmark)
printer.flush()
}
printer.close()
......
......@@ -13,10 +13,7 @@ import se.lth.cs.papicounters.PAPICounter
import se.lth.cs.papicounters.PapiTracerRunner
import se.lth.cs.util.brainyFeatures
import se.lth.cs.util.normalize
import java.io.File
import java.io.FileReader
import java.io.FileWriter
import java.io.Reader
import java.io.*
import java.util.stream.Collectors
import java.util.stream.Stream
import kotlin.system.exitProcess
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment