/** Opens the trial output file. */ synchronized void open() throws IOException { if (writer == null) { FileAndWriter fileAndWriter = outputManager.getTrialOutputFile(trialNumber); file = fileAndWriter.file; writer = fileAndWriter.writer; } }
/** Marks the log file so that it will not be deleted at the end of the benchmark. */ void ensureFileIsSaved() { checkOpened(); outputManager.persistFile(file); }