mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
Let BenchmarkReporter
create a file if it doesn't exist (#5657)
CHANGELOG_BEGIN [TestTool] Let `--perf-tests-report` attempt to create the file if it doesn't exist CHANGELOG_END
This commit is contained in:
parent
70a8e8103c
commit
94e7330628
@ -24,7 +24,8 @@ object BenchmarkReporter {
|
||||
class FileOutputBenchmarkReporter(path: Path) extends BenchmarkReporter {
|
||||
|
||||
override def addReport(key: String, value: Double): Unit = synchronized {
|
||||
val _ = Files.write(path, Seq(s"$key=$value").asJava, StandardOpenOption.APPEND)
|
||||
val _ = Files
|
||||
.write(path, Seq(s"$key=$value").asJava, StandardOpenOption.CREATE, StandardOpenOption.APPEND)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user