Our great sponsors
-
flamegraph
Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3 (by flamegraph-rs)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Thanks, I actually tried flamegraph-rs but it didn't help me very much because the functions were recursive so it's not immediately clear what's taking long on the graph.
You can see my flamegraph here, it's not very clear that the clone is taking up a lot of time. Is there some tool that gives me a percentage of total time that is spent on one function? Then I could easily see that the clone is taking a long time
You're best bet at the moment is probably using cargo-asm to inspect the function assembly to see when it is performing the correct TCO.
You can use https://crates.io/crates/tracing to trace calls to the recursive function, print out the arguments and see which values are making it slow