HotShot icon indicating copy to clipboard operation
HotShot copied to clipboard

[Auto Benchmarks] - Flamegraphing with auto benchmarking

Open dailinsubjam opened this issue 1 year ago • 0 comments

What is this task and why do we need to work on it?

To help to answer why are we not getting better throughput/latency, we want to do flamegraphing for some runs.

What work will need to be done to complete this task?

Write scripts to generate flamegraph automatically.

Are there any other details to include?

If you want to profile the code, it's not too hard to set up, you would just hook it up to here: https://github.com/flamegraph-rs/flamegraph?tab=readme-ov-file#installation and make sure you copy the RUSTFLAGS from the justfile when running. You would end up with a command like RUSTFLAGS='--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"' sudo cargo flamegraph --test TEST_NAME. If it's a cargo subcommand you can do just cargo flamegraph (defaults to async-std). [Copy-Pasted from Zulip]

What are the acceptance criteria to close this issue?

Flamegraphing is integrated into the scripts or could be easily run when we want one for a benchmark run.

Branch work will be merged to (if not the default branch)

No response

dailinsubjam avatar May 17 '24 23:05 dailinsubjam