alamb commented on code in PR #12521: URL: https://github.com/apache/datafusion/pull/12521#discussion_r1765192394
########## docs/source/library-user-guide/profiling.md: ########## @@ -25,34 +25,44 @@ The section contains examples how to perform CPU profiling for Apache DataFusion ### Building a flamegraph -- [cargo-flamegraph](https://github.com/flamegraph-rs/flamegraph) +[Video: how to CPU profile DataFusion with a Flamegraph](https://youtu.be/2z11xtYw_xs) -Test: +A flamegraph is a visual representation of which functions are being run +You can create flamegraphs in many ways; The instructions below are for +[cargo-flamegraph](https://github.com/flamegraph-rs/flamegraph) which results +in images such as this: -```bash -CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --root --unit-test datafusion -- dataframe::tests::test_array_agg + + +To create a flamegraph, you need to install the `flamegraph` tool: + +```shell +cargo install cargo-flamegraph Review Comment: You are totally right - thank you -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org