libftrace
Extemely simple function tracer, useful for debugging.
Usage
Before diving too deep, you should add the crate to your Cargo.toml:
[]
= "^0"
Then, add the `#[libftrace::traced]`` attribute to add spanning to a function:
use traced;
Development Usage
Tracing attributes can be expensive for performance, so ftrace includes a way to disable it. To disable it, disable the enable feature (which is the only default feature):
[]
= { = "^0", = false }
Currently, the dependencies of ftrace are still pulled, but there will be no performance cost of using it, while disabled.