Skip to content

Commit

Permalink
Add comment with code for enabling tracing in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MagnusS committed Jul 7, 2015
1 parent c8e6dcc commit d3d5557
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib_test/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ let () =
Log.enable log;
Log.set_stats log false
);
(* Uncomment to enable tracing *)
(*let buffer = MProf_unix.mmap_buffer ~size:1000000 "trace.ctf" in
let trace_config = MProf.Trace.Control.make buffer MProf_unix.timestamper in
MProf.Trace.Control.start trace_config;*)
let suite = List.map (fun (n, s) ->
n, List.map (fun (d, s, f) -> d, s, run f) s
) suite
Expand Down

0 comments on commit d3d5557

Please sign in to comment.