update test

This commit is contained in:
Simon Cruanes 2023-06-09 16:08:43 -04:00
parent fdb0f5c4e9
commit 89dac20da8
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,6 @@
[{"pid": 2,"cat":"","tid": 3,"ts": 2.00,"name":"hello 1 2","ph":"I"},
[{"pid": 2,"name":"process_name","ph":"M","args": {"name":"main"}},
{"pid": 2,"tid": 3,"name":"thread_name","ph":"M","args": {"name":"t1"}},
{"pid": 2,"cat":"","tid": 3,"ts": 2.00,"name":"hello 1 2","ph":"I"},
{"pid": 2,"cat":"","tid": 3,"dur": 2.00,"ts": 1.00,"name":"inner.loop","ph":"X"},
{"pid": 2,"cat":"","tid": 3,"ts": 5.00,"name":"hello 1 3","ph":"I"},
{"pid": 2,"cat":"","tid": 3,"dur": 2.00,"ts": 4.00,"name":"inner.loop","ph":"X"},

View file

@ -1,4 +1,6 @@
let run () =
Trace.set_process_name "main";
Trace.set_thread_name "t1";
for _i = 1 to 50 do
Trace.with_span ~__FILE__ ~__LINE__ "outer.loop" @@ fun _sp ->
for _j = 2 to 5 do