bevy/docs/profiling.md
2020-06-10 00:24:28 -07:00

9 lines
No EOL
434 B
Markdown

# Profiling
* Compile Times: append ```-Ztimings``` to cargo builds
* Runtime Flame Graph:
* Flat-ish: ```RUSTFLAGS='-C force-frame-pointers=y' cargo flamegraph --example EXAMPLE_NAME```
* Graph: ```RUSTFLAGS='-C force-frame-pointers=y' cargo flamegraph -c "record -g" --example EXAMPLE_NAME```
* built on top of perf, no instrumentation required
* Runtime Instrumentation:
* https://github.com/glennw/thread_profiler