Commit 04419d7c3269aa29ff669c8b5f3a7999edb44bea
1 parent
8d7db473
Maintainer notes for using profiler
Showing
1 changed file
with
7 additions
and
0 deletions
README-maintainer
| @@ -10,6 +10,13 @@ Debugging: | @@ -10,6 +10,13 @@ Debugging: | ||
| 10 | 10 | ||
| 11 | ./configure CFLAGS="-g" CXXFLAGS="-g" --enable-werror --disable-shared | 11 | ./configure CFLAGS="-g" CXXFLAGS="-g" --enable-werror --disable-shared |
| 12 | 12 | ||
| 13 | +Profiling: | ||
| 14 | + | ||
| 15 | +./configure CFLAGS="-g -pg" CXXFLAGS="-g -pg" LDFLAGS="-pg" \ | ||
| 16 | + --enable-werror --disable-shared | ||
| 17 | + | ||
| 18 | +Then run `gprof gmon.out`. Note that gmon.out is not cumulative. | ||
| 19 | + | ||
| 13 | Memory checks: | 20 | Memory checks: |
| 14 | 21 | ||
| 15 | ./configure CFLAGS="-fsanitize=address -fsanitize=undefined -g" \ | 22 | ./configure CFLAGS="-fsanitize=address -fsanitize=undefined -g" \ |