libftrace

Crates.iolibftrace
lib.rslibftrace
version0.0.4
created_at2025-11-18 17:04:29.07377+00
updated_at2025-11-20 11:13:33.234434+00
descriptionExtemely simple function tracer, useful for debugging
homepage
repositoryhttps://github.com/lume-lang/libftrace
max_upload_size
id1938704
size48,488
Max T. Kristiansen (maxnatamo)

documentation

README

libftrace

CI crates.io docs.rs

Extemely simple function tracer, useful for debugging.

Usage

Before diving too deep, you should add the crate to your Cargo.toml:

[dependencies]
libftrace = "^0"

Then, add the `#[libftrace::traced]`` attribute to add spanning to a function:

use libftrace::traced;

#[traced]
fn handle_request(req: Request) {
    // ..
}

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):

[dependencies]
libftrace = { version = "^0", default-features = false }

Currently, the dependencies of ftrace are still pulled, but there will be no performance cost of using it, while disabled.

Commit count: 0

cargo fmt