From 4245fbfb22f1f7de09a46e94a80cec16fa1cde08 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 1 Dec 2019 20:49:33 -0500 Subject: [PATCH] trace name to grab date --- java_console/ui/src/com/rusefi/BenchTestPane.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/java_console/ui/src/com/rusefi/BenchTestPane.java b/java_console/ui/src/com/rusefi/BenchTestPane.java index df3eb095d0..325c0eba5b 100644 --- a/java_console/ui/src/com/rusefi/BenchTestPane.java +++ b/java_console/ui/src/com/rusefi/BenchTestPane.java @@ -6,6 +6,7 @@ import com.rusefi.config.generated.Fields; import com.rusefi.tracing.Entry; import com.rusefi.tracing.JsonOutput; import com.rusefi.ui.MessagesView; +import com.rusefi.ui.RpmModel; import com.rusefi.ui.util.UiUtils; import org.jetbrains.annotations.NotNull; @@ -67,7 +68,12 @@ public class BenchTestPane { throw new IllegalStateException("Unexpected packet"); List data = Entry.parseBuffer(packet); - JsonOutput.writeToStream(data, new FileOutputStream("hello_trace.json")); + + int rpm = RpmModel.getInstance().getValue(); + String fileName = FileLog.getDate() + "_rpm_" + rpm + "_rusEfi_trace" + ".json"; + + + JsonOutput.writeToStream(data, new FileOutputStream(fileName)); } catch (IOException | InterruptedException e1) { throw new IllegalStateException(e1); }