Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
CI-unixish.yml: added callgrind runs with -O3 and LTO
  • Loading branch information
firewave committed Apr 16, 2026
commit 79860f54aec5d784646b5b569b276e09257a76cb
30 changes: 28 additions & 2 deletions .github/workflows/CI-unixish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,33 @@ jobs:
tar xvf 1.5.1.tar.gz
rm -f 1.5.1.tar.gz

# O2 - start
make clean
make -j$(nproc) CXXOPTS="-O2 -g3" simplecpp
VALGRIND_TOOL=callgrind SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >callgrind.log || (cat callgrind.log && false)
cat callgrind.log
VALGRIND_TOOL=callgrind SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >callgrind_o2.log || (cat callgrind_o2.log && false)
cat callgrind_o2.log
# O2 - end

# O3 - start
make clean
make -j$(nproc) CXXOPTS="-O3 -g3" simplecpp
VALGRIND_TOOL=callgrind SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >callgrind_o3.log || (cat callgrind_o3.log && false)
cat callgrind_o3.log
# O3 - end

# O2+LTO - start
make clean
make -j$(nproc) CXXOPTS="-O2 -g3 -flto" LDOPTS="-flto" simplecpp
VALGRIND_TOOL=callgrind SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >callgrind_o2_lto.log || (cat callgrind_o2_lto.log && false)
cat callgrind_o2_lto.log
# O2+LTO - end

# O3+LTO - start
make clean
make -j$(nproc) CXXOPTS="-O2 -g3 -flto" LDOPTS="-flto" simplecpp
VALGRIND_TOOL=callgrind SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >callgrind_o3_lto.log || (cat callgrind_o3_lto.log && false)
cat callgrind_o3_lto.log
# O3+LTO - end

# PGO - start
make clean
Expand All @@ -179,6 +202,9 @@ jobs:
cat callgrind_pgo.log
# PGO - end

# TODO: PGO+O3
# TODO: PGO+LTO

for f in callgrind.out.*;
do
callgrind_annotate --auto=no $f > $f.annotated.log
Expand Down
Loading