@@ -47,13 +47,16 @@ jobs:
4747
4848 - name : Build profiler
4949 run : |
50- echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" | sudo tee -a /etc/apt/sources.list
51- echo "deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" | sudo tee -a /etc/apt/sources.list
52- curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
53- curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
54- sudo apt remove -y clang-*
50+ codename="$(lsb_release -cs)"
51+ curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/llvm-archive-keyring.gpg
52+ echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/${codename}/ llvm-toolchain-${codename}-19 main" | sudo tee /etc/apt/sources.list.d/llvm.list
5553 sudo apt-get update
56- sudo apt install -y clang-17
54+ sudo apt-get install -y clang-19 lld-19
55+ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 100
56+ sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 100
57+ sudo update-alternatives --install /usr/bin/ld.lld ld.lld /usr/bin/ld.lld-19 100
58+ clang --version
59+ ld.lld --version
5760 cd profiling
5861 version_number=$(awk -F' = ' '$1 == "channel" { gsub(/"/, "", $2); print $2 }' rust-toolchain.toml)
5962 curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y --default-toolchain "$version_number"
7780 export DD_PROFILING_EXCEPTION_MESSAGE_ENABLED=1
7881 php -v
7982 php -d extension=target/profiler-release/libdatadog_php_profiling.so --ri datadog-profiling
80- for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions" "allocation_time_combined"; do
83+ for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions" "io" " allocation_time_combined"; do
8184 mkdir -p profiling/tests/correctness/"$test_case"/
8285 export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
8386 php -d extension="${PWD}/target/profiler-release/libdatadog_php_profiling.so" "profiling/tests/correctness/${test_case}.php"
9598 export DD_PROFILING_EXCEPTION_MESSAGE_ENABLED=1
9699 php -v
97100 php -d extension=target/profiler-release/libdatadog_php_profiling.so --ri datadog-profiling
98- for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions" "allocation_time_combined"; do
101+ for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions" "io" " allocation_time_combined"; do
99102 mkdir -p profiling/tests/correctness/"$test_case"/
100103 export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
101104 php -d extension=$PWD/target/profiler-release/libdatadog_php_profiling.so profiling/tests/correctness/"$test_case".php
@@ -167,6 +170,12 @@ jobs:
167170 expected_json : profiling/tests/correctness/allocation_time_combined.json
168171 pprof_path : profiling/tests/correctness/allocation_time_combined/
169172
173+ - name : Check profiler correctness for IO
174+ uses : Datadog/prof-correctness/analyze@main
175+ with :
176+ expected_json : profiling/tests/correctness/io.json
177+ pprof_path : profiling/tests/correctness/io/
178+
170179 - name : Check profiler correctness for exceptions ZTS
171180 if : matrix.phpts == 'zts'
172181 uses : Datadog/prof-correctness/analyze@main
0 commit comments