Lightlines
By mohitmishra786

rust-profiling

mohitmishra786551 installs

Find what makes your Rust code slow or bulky.

What it does

Guides Rust performance investigations with flamegraphs, binary-size measurements, and microbenchmarks.

When to use it

Use when profiling Rust performance, investigating binary size or monomorphization bloat, or writing Criterion benchmarks.

How to use it

Give it a Rust project to profile; it builds the program with debug symbols and generates a flamegraph.

What you provide

  • An existing project

Good to know

  • cannot be undone: /proc/sys/kernel/perf_event_paranoid; /proc/sys/kernel/kptr_restrict

Latest review

What you need · 0

No setup requirements listed.


Access · 5

This skill

/proc/sys/kernel/perf_event_paranoid

Write

Changes Linux profiling permissions (irreversible)

/proc/sys/kernel/kptr_restrict

Write

Allows access to kernel symbols (irreversible)

flamegraph

Execute

Installs the flamegraph tool

cargo-bloat

Execute

Installs cargo-bloat