diff --git a/java_console/models/src/com/rusefi/tracing/JsonOutput.java b/java_console/models/src/com/rusefi/tracing/JsonOutput.java index 45e4244962..2dd9a3f4f2 100644 --- a/java_console/models/src/com/rusefi/tracing/JsonOutput.java +++ b/java_console/models/src/com/rusefi/tracing/JsonOutput.java @@ -1,5 +1,7 @@ package com.rusefi.tracing; +import com.rusefi.PerfTraceTool; + import java.io.*; import java.util.Arrays; import java.util.List; @@ -39,11 +41,14 @@ public class JsonOutput { private static final String EOL = "\r\n"; public static void main(String[] args) throws IOException { + /** + * that's just a test I assume? + */ List testEntries = Arrays.asList( - new Entry("hello", Phase.B, 0.1), - new Entry("hello2", Phase.B, 0.2), - new Entry("hello2", Phase.E, 0.3), - new Entry("hello", Phase.E, 0.4) + new Entry("hello", Phase.B, 0.1, 0, 0), + new Entry("hello2", Phase.B, 0.2, 0, 0), + new Entry("hello2", Phase.E, 0.3, 0, 0), + new Entry("hello", Phase.E, 0.4, 0, 0) ); writeToStream(testEntries, new FileOutputStream("hello_trace.json")); diff --git a/java_console/models/src/com/rusefi/tracing/test/EntryTest.java b/java_console/models/src/com/rusefi/tracing/test/EntryTest.java index 9f826f1343..18352ca9a6 100644 --- a/java_console/models/src/com/rusefi/tracing/test/EntryTest.java +++ b/java_console/models/src/com/rusefi/tracing/test/EntryTest.java @@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals; public class EntryTest { @Test public void testToString() { - Entry e = new Entry("hello", Phase.E, 0.1); + Entry e = new Entry("hello", Phase.E, 0.1, 0, 0); assertEquals("{\"name\":\"hello\",\"ph\":\"E\",\"tid\":0,\"pid\":0,\"ts\":0.1}", e.toString());