funtime
A small proc-macro helper to time every statement in a given function (or item method).
Usage
Prints:
funtime start: `foo`
took 1µs: `let mut x = 1 ;`
took 5µs: `let d = 1_000 ;`
took 2µs: `x += d ;`
took 2µs: `x += y ;`
took 3µs: `x`
funtime end: `foo` took 12µs
funtime start: `main`
took 49µs: `foo (23) ;`
funtime end: `main` took 56µs
Current version: 0.3.0
.
Supports rustc 1.31
and up.