Cargo Features

pprof = { version = "0.13.0", default-features = false, features = ["cpp", "flamegraph", "frame-pointer", "prost-codec", "protobuf-codec", "criterion"] }
default = cpp

The cpp feature is set by default whenever pprof is added without default-features = false somewhere in the dependency tree.

cpp default

Enables cpp of symbolic-demangle

flamegraph = inferno

Affects backtrace::frame_pointer

prost-codec = prost, prost-build, prost-derive, sha2

Affects pprof::protos

protobuf-codec = protobuf, protobuf-codegen-pure

Affects pprof::protos

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

inferno flamegraph?

With nameattr

prost prost-codec?

With default features

prost-derive prost-codec?
protobuf protobuf-codec?

Enables protobuf ^2.0

prost-build prost-codec? build

Enables default (format) of prost-build

sha2 prost-codec? build

Enables default (std) of sha2

protobuf-codegen-pure protobuf-codec? build

Enables protobuf-codegen-pure

criterion implicit feature

With default features

Affects pprof::criterion