mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-08 03:47:57 -04:00
update test
This commit is contained in:
parent
fdb0f5c4e9
commit
89dac20da8
2 changed files with 5 additions and 1 deletions
|
|
@ -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,"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,"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"},
|
{"pid": 2,"cat":"","tid": 3,"dur": 2.00,"ts": 4.00,"name":"inner.loop","ph":"X"},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
let run () =
|
let run () =
|
||||||
|
Trace.set_process_name "main";
|
||||||
|
Trace.set_thread_name "t1";
|
||||||
for _i = 1 to 50 do
|
for _i = 1 to 50 do
|
||||||
Trace.with_span ~__FILE__ ~__LINE__ "outer.loop" @@ fun _sp ->
|
Trace.with_span ~__FILE__ ~__LINE__ "outer.loop" @@ fun _sp ->
|
||||||
for _j = 2 to 5 do
|
for _j = 2 to 5 do
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue