Skip to content

Instantly share code, notes, and snippets.

@kuhar
Created March 26, 2024 22:10
Show Gist options
  • Save kuhar/14cdbd0e429bed963716bda211330436 to your computer and use it in GitHub Desktop.
Save kuhar/14cdbd0e429bed963716bda211330436 to your computer and use it in GitHub Desktop.
Flame graph example
echo 0 | sudo tee /proc/sys/kernel/perf_event_paranoid
sudo perf record -F 999 -g -- tools/iree-compile --iree-hal-target-backends=rocm --iree-rocm-target-chip=gfx942 stable_diffusion_xl_base_1_0_64_1024x1024_fp16_unet_linalg_nithin.mlir --iree-preprocessing-transform-spec-filename=config-preprocessing.mlir
sudo chown "$USER:$USER" perf.data
pprof -http : perf.data
@kuhar
Copy link
Author

kuhar commented Mar 26, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment