OCaml gained support for perf profiling on Linux. Is there something equivalent for profiling on macOS, either Intel or ARM?
1 Like
Recently I realized symbols seem to be showing up again in the xcode profiling tools.
Try something along these lines:
xcrun xctrace record --template='Time Profiler' --launch -- /path/to/your/exec
5 Likes
macOS has a sampling profiler /usr/bin/sample
but I can’t get something useful out of it (tried OCaml 4.12.0 and OCaml 4.08) but maybe my program is not running long enough.