From a1fe034dc5a6691073dbef8a39f051a92284b2fa Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Thu, 7 Apr 2016 16:10:00 +0100 Subject: [PATCH] Created Profiling (asciidoc) --- Profiling.asciidoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Profiling.asciidoc diff --git a/Profiling.asciidoc b/Profiling.asciidoc new file mode 100644 index 0000000..b0009f3 --- /dev/null +++ b/Profiling.asciidoc @@ -0,0 +1,15 @@ +==== 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. + + +---- \ No newline at end of file