nim-wiki/Profiling.asciidoc

15 lines
300 B
Plaintext
Raw Normal View History

2016-04-07 15:10:00 +00:00
==== Profiling Nim with Valgrind
[source,bash]
----
# build your application as:
nim -d:release --debugger:native c application.nim
# profile calls with:
valgrind --tool=callgrind ./application
# terminate the application and visualize the calls with:
callgrind_annotate callgrind.out.<pid>
----