Try out OpenResty XRay for free: https://openresty.com/en/xray/
In this tutorial, we will demonstrate how the CPU time is spent qualitatively inside Rust’s sled library with OpenResty XRay. We will show the most CPU-intensive Rust code paths in it.
Text version of this tutorial: https://blog.openresty.com/en/sled-hi...
OpenResty XRay is a dynamic-tracing product that automatically analyzes your running applications to troubleshoot performance problems, behavioral issues, and security vulnerabilities with actionable suggestions.
Under the hood, OpenResty XRay is powered by our Y language targeting various runtimes like Stap+, eBPF+, GDB, and ODB, depending on the contexts.
OpenResty XRay is a truly non-intrusive dynamic analysis, which does not require installing any special modules or plugins in the target application, does not require recompiling the target application, and even does not require restarting the running process.
Music: https://www.bensound.com
0:00 Problem: high CPU usage
0:28 spot the most CPU-intensive Rust code paths
1:52 details of analysis report
5:12 Insight page and guided analysis feature
5:35 What is OpenResty XRay