Skip to content

Commit

Permalink
update profiling doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Jun 10, 2020
1 parent 3d07fbd commit f4b07ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/profiling.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Profiling

* Compile Times: append ```-Ztimings``` to cargo builds
* Runtime Flame Graph: ```cargo flamegraph --example EXAMPLE_NAME```
* 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

0 comments on commit f4b07ec

Please sign in to comment.