From ae601441bfcf28298dde30ad92d3eca541c9345f Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Tue, 30 Jan 2018 15:53:19 +0000 Subject: Update build instrs with better profiling guide --- build-instructions.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'build-instructions.md') 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 -- cgit v1.2.1