From d3dc469aa65761e1432727b72b0accb9325e9cc3 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Fri, 23 Feb 2018 12:53:35 +0000 Subject: Update prof instuctions with line number hint --- build-instructions.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-instructions.md b/build-instructions.md index 7a76227..ae6d386 100644 --- a/build-instructions.md +++ b/build-instructions.md @@ -50,7 +50,9 @@ Note: this doesn't have to (and probably shouldn't) be run from within the proje ## Profiling -env CPUPROFILE=solvitaire.prof CPUPROFILESIGNAL=12 CPUPROFILE_FREQUENCY=1000 cmake-build-release/bin/solvitaire --type black-hole --random 4 --classify & +To get line numbers, you will first need to change the release build from -03 to -02 + +env CPUPROFILE=solvitaire.prof CPUPROFILESIGNAL=12 CPUPROFILE_FREQUENCY=1000 cmake-build-release/bin/solvitaire --type spanish-patience --random 4 --classify & killall -12 solvitaire (start profiling) killall -12 solvitaire (stop profiling) pprof --callgrind src/ solvitaire.prof.0 > solvitaire.callgrind (ignore any warnings) -- cgit v1.2.1