aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecharlesblake2018-01-30 15:53:19 +0000
committerthecharlesblake2018-01-30 15:53:19 +0000
commitae601441bfcf28298dde30ad92d3eca541c9345f (patch)
tree903d7c41b7acc98e71714da39aae16177337ad70
parentUpdate tests to use new game_state constructor (diff)
downloadmetasol-ae601441bfcf28298dde30ad92d3eca541c9345f.tar.gz
metasol-ae601441bfcf28298dde30ad92d3eca541c9345f.zip

Update build instrs with better profiling guide

-rw-r--r--build-instructions.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/build-instructions.md b/build-instructions.md
index 0904b1c..b2a8b2d 100644
--- a/build-instructions.md
+++ b/build-instructions.md
@@ -50,6 +50,8 @@ Note: this doesn't have to (and probably shouldn't) be run from within the proje
## Profiling
-env CPUPROFILE=solv.prof cmake-build-release/bin/solvitaire --type black-hole --random 8
-pprof --callgrind src/ solv.prof > solv.callgrind (ignore the warnings)
-kcachegrind solv.callgrind
+env CPUPROFILE=solvitaire.prof CPUPROFILESIGNAL=12 CPUPROFILE_FREQUENCY=1000 cmake-build-release/bin/solvitaire --type black-hole --random 4 &
+killall -12 solvitaire (start profiling)
+killall -12 solvitaire (stop profiling)
+pprof --callgrind src/ solvitaire.prof.0 > solvitaire.callgrind (ignore any warnings)
+kcachegrind solvitaire.callgrind