bevy/docs/profiling.md

10 lines
446 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```
* built on top of perf, no instrumentation required
2020-02-11 06:13:05 +00:00
* Runtime Instrumentation:
* [thread_profiler](https://github.com/glennw/thread_profiler)