probe 0.1.3

Static instrumentation probes
docs.rs failed to build probe-0.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: probe-0.5.1

libprobe: Static probes for Rust

With the probe! macro, programmers can place static instrumentation points in their code to mark events of interest. These are compiled into platform-specific implementations, e.g. SystemTap SDT on Linux. Probes are designed to have negligible overhead during normal operation, so they can be present in all builds, and only activated using those external tools.

Documentation

Generated documentation for libprobe can be found on GitHub or on Rust CI.

Building libprobe

Simply run rustc src/lib.rs and copy the libprobe shared object to an appropriate library path for your other rust projects.

If you're using cargo, just add this to your Cargo.toml:

[dependencies.probe]
git = "https://github.com/cuviper/rust-libprobe.git"

Nightly build status is available on Rust CI: build status

Rust integration

I hope that this library can eventually be a standard part of the Rust distribution -- see the rust pull request and original enhancement issue. It works fine as a standalone library, but if it were incorporated, then even Rust's own libraries could define probe points.

License

libprobe follows the same license choices as The Rust Project itself, in order to ease a future merge.

See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.