Adding pprof library as a dependency

Run this command in a terminal, in your project's directory:

cargo add --dev pprof

to add it a dev dependency (if it's used only in tests, not in the final product). To add it as a regular run-time dependency, run:

cargo add pprof

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

pprof = "0.15.0"

The pprof library will be automatically available globally.

Back to the crate overview.