File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -110,3 +110,20 @@ jobs:
110110 run : |
111111 make clean
112112 make -j$(nproc) test selfcheck CXXOPTS="-O2 -g3 -stdlib=libc++ -fsanitize=memory" LDOPTS="-lc++ -fsanitize=memory"
113+
114+ - name : Run callgrind
115+ if : matrix.os == 'ubuntu-24.04'
116+ run : |
117+ wget https://github.com/danmar/simplecpp/archive/refs/tags/1.5.1.tar.gz
118+ tar xvf 1.5.1.tar.gz
119+ make clean
120+ make -j$(nproc) CXXOPTS="-O2 -g3"
121+ valgrind --tool=callgrind ./simplecpp -e simplecpp-1.5.1/simplecpp.cpp || (cat callgrind.log && false)
122+ cat callgrind.log
123+ callgrind_annotate --auto=no > callgrind.annotated.log
124+ head -50 callgrind.annotated.log
125+
126+ - uses : actions/upload-artifact@v4
127+ with :
128+ name : Callgrind Output
129+ path : ./callgrind.*
You can’t perform that action at this time.
0 commit comments