Continuous profiling for Rust
Back to home
On this page
Upsun Continuous Profiler is powered by Blackfire. It is available directly the Console, under the Profiling tab of your environments.
The Rust continuous profiling is currently made across 3 dimensions:
- CPU Time: Time spent running on the CPU
- Allocated Memory: Number of bytes allocated in memory
- Allocations: Time spent running on the CPU
The default sampling frequency is 100 Hz. This means the Rust continuous profiler is collecting information 100 times per second. The allocated memory sampling frequency is 524288 Hz.
Installation
The Blackfire Continuous Profiler Rust library is included by default in all Rust images. There is no installation required nor minimal Rust version needed.
Configuration
The Rust continuous profiler is enabled by default without configuration.
It is recommended to build your Rust application in debug mode to benefit from comprehensive stacktrace and information that could be obfuscated and collapsed otherwise.
$ cargo build