From ddfd79f5ab8bec4949e9a334f62facd67a7d4dfa Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Mon, 25 Dec 2017 22:00:42 +0000 Subject: Add necessary features for profiler --- build-instructions.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build-instructions.md') diff --git a/build-instructions.md b/build-instructions.md index 1a8980d..028ce90 100644 --- a/build-instructions.md +++ b/build-instructions.md @@ -48,7 +48,8 @@ Note: this doesn't have to (and probably shouldn't) be run from within the proje `cpack --config cmake-build-[debug|release]/CPackConfig.cmake` -## A Note on CLion +## Profiling -If CLion complains that a dependency is missing, you may need to run the conan -install command, and then in Clion run 'File->Reload CMake Project +env CPUPROFILE=solv.prof cmake-build-debug/bin/solvitaire --type simple-spanish-patience --random 0 > /dev/null 2>&1 +pprof --callgrind src/ solv.prof > solv.callgrind +kcachegrind solv.callgrind -- cgit v1.2.1