Try out OpenResty XRay for free: https://openresty.com/en/xray/
In this tutorial, you will learn how to use OpenResty XRay to quantitatively analyze high disk I/O issues in an online Rust application. With the Rust-level disk write count, latency, and throughput flame graphs generated by OpenResty XRay, you can identify the Rust code paths with the most significant disk latency and write volume. Plus, it offers precise line-by-line code insights to locate the problem’s root cause swiftly and guide optimizations.
Text version of this tutorial: https://blog.openresty.com/en/rust-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 context.
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 does not even require restarting the running process.
Music: https://www.bensound.com
0:00 Problem: high disk I/O
0:15 Spot the problematic Rust code paths
1:13 Details of Analysis Report
3:31 Automatic analysis and reports feature