bevy/docs/profiling.md

9 lines
434 B
Markdown
Raw Normal View History

2020-02-11 06:13:05 +00:00
# Profiling
* Compile Times: append ```-Ztimings``` to cargo builds
2020-06-10 07:24:28 +00:00
* 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```
2020-02-11 06:13:05 +00:00
* built on top of perf, no instrumentation required
* Runtime Instrumentation:
* https://github.com/glennw/thread_profiler