fixing build
This commit is contained in:
parent
1f16228bdb
commit
b9c4c3636e
|
@ -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<Entry> 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"));
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue