nim-wiki/Profiling.asciidoc

17 lines
356 B
Plaintext
Raw Normal View History

2016-04-10 12:27:45 +00:00
Embedded Stack Trace Profiler: http://nim-lang.org/docs/estp.html
2016-04-07 15:10:00 +00:00
==== Profiling Nim with Valgrind
[source,bash]
----
# build your application as:
2017-07-10 11:06:03 +00:00
nim --debugger:native c application.nim
2016-04-07 15:10:00 +00:00
# profile calls with:
valgrind --tool=callgrind ./application
# terminate the application and visualize the calls with:
callgrind_annotate callgrind.out.<pid>
----