stperf
stperf (single-threaded performance profiler) is a very
simple profiling utility for single-threaded applications, inspired by
hprof.
Usage
Check out the docs.
extern crate stperf;
Will print out:
╶──┬╼ main - 100.0%, 300 ms/loop, 2 samples
├──┬╼ inner operations - 66.7%, 200 ms/loop, 4 samples
│ └───╼ processing - 100.0%, 200 ms/loop, 4 samples
└───╼ processing - 33.3%, 100 ms/loop, 2 samples
License
This crate is distributed under the terms of the ISC license.