edited on 2020-09-22

Profiling Rust on macOS

I've been using Rust for a while and I think it is time to profile my Rust programs. There are many profilers to choose from and they have more different features than they have similar ones. Except Xcode, the rest of the options are probably avaiable for all systems.

Go to "All Processes" on the top left of the screen and find your program. Press record and you should see the CPU time your program takes.

Using 'pprof'

Using 'puffin'

Using 'criterion'