diff options
| author | Charlie Blake | 2018-02-24 11:12:45 +0000 |
|---|---|---|
| committer | GitHub | 2018-02-24 11:12:45 +0000 |
| commit | 2db3586f42af5174a14e8a6f693334f3f4f75e14 (patch) | |
| tree | 4983a8a72065056e693b418510e64abdbdb0f2b7 /build-instructions.md | |
| parent | Merge pull request #40 from thecharlesblake/test-optimisations (diff) | |
| parent | Add card just moved optimisation to game logic (diff) | |
| download | metasol-2db3586f42af5174a14e8a6f693334f3f4f75e14.tar.gz metasol-2db3586f42af5174a14e8a6f693334f3f4f75e14.zip | |
Merge pull request #41 from thecharlesblake/profile-improve
Profile improve
Diffstat (limited to 'build-instructions.md')
| -rw-r--r-- | build-instructions.md | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
