As mentioned in a previous post in these series, this is implemented in the LLVM MCA tool:<p><a href="https://llvm.org/docs/CommandGuide/llvm-mca.html" rel="nofollow">https://llvm.org/docs/CommandGuide/llvm-mca.html</a><p>I particularly like the wrapper for it <a href="https://lib.rs/cargo-show-asm" rel="nofollow">https://lib.rs/cargo-show-asm</a> `cargo asm --mca function_name` that makes it easy to isolate a specific function from an arbitrarily large project.