mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
update test
This commit is contained in:
parent
c683f6331b
commit
83baf45207
2 changed files with 205 additions and 201 deletions
400
test/t1.expected
400
test/t1.expected
File diff suppressed because it is too large
Load diff
|
|
@ -17,8 +17,10 @@ let run () =
|
||||||
Trace.message "world";
|
Trace.message "world";
|
||||||
Trace.counter_int "n" !n;
|
Trace.counter_int "n" !n;
|
||||||
|
|
||||||
|
Trace.add_data_to_span _sp [ "i", `Int _i ];
|
||||||
|
|
||||||
if _j = 2 then (
|
if _j = 2 then (
|
||||||
(* fake micro sleep *)
|
Trace.add_data_to_span _sp [ "j", `Int _j ];
|
||||||
let _sp =
|
let _sp =
|
||||||
Trace.enter_manual_sub_span ~parent:pseudo_async_sp
|
Trace.enter_manual_sub_span ~parent:pseudo_async_sp
|
||||||
~flavor:
|
~flavor:
|
||||||
|
|
@ -28,6 +30,8 @@ let run () =
|
||||||
`Async)
|
`Async)
|
||||||
~__FILE__ ~__LINE__ "sub-sleep"
|
~__FILE__ ~__LINE__ "sub-sleep"
|
||||||
in
|
in
|
||||||
|
|
||||||
|
(* fake micro sleep *)
|
||||||
Thread.delay 0.005;
|
Thread.delay 0.005;
|
||||||
Trace.exit_manual_span _sp
|
Trace.exit_manual_span _sp
|
||||||
) else if _j = 3 then
|
) else if _j = 3 then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue