5555 cd profiling
5656 version_number=$(awk -F' = ' '$1 == "channel" { gsub(/"/, "", $2); print $2 }' rust-toolchain.toml)
5757 curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y --default-toolchain "$version_number"
58- cargo rustc --features="trigger_time_sample" --release --crate-type=cdylib
58+ cargo rustc --features="trigger_time_sample" --profile profiler- release --crate-type=cdylib
5959
6060 - name : Cache build dependencies
6161 uses : actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
@@ -74,13 +74,13 @@ jobs:
7474 export DD_PROFILING_EXPERIMENTAL_FEATURES_ENABLED=1
7575 export DD_PROFILING_EXCEPTION_MESSAGE_ENABLED=1
7676 php -v
77- php -d extension=target/release/libdatadog_php_profiling.so --ri datadog-profiling
77+ php -d extension=target/profiler- release/libdatadog_php_profiling.so --ri datadog-profiling
7878 for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions"; do
7979 mkdir -p profiling/tests/correctness/"$test_case"/
8080 export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
81- php -d extension=$ PWD/target/release/libdatadog_php_profiling.so profiling/tests/correctness/"$ test_case" .php
82- if [ -f "$DD_PROFILING_OUTPUT_PPROF".1.zst ]; then
83- echo "File $DD_PROFILING_OUTPUT_PPROF.1.zst should not exist!"
81+ php -d extension="${ PWD} /target/profiler- release/libdatadog_php_profiling.so" " profiling/tests/correctness/${ test_case} .php"
82+ if [ -f "$DD_PROFILING_OUTPUT_PPROF".1.lz4 ]; then
83+ echo "File $DD_PROFILING_OUTPUT_PPROF.1.lz4 should not exist!"
8484 exit 1;
8585 fi
8686 done
@@ -92,16 +92,16 @@ jobs:
9292 export DD_PROFILING_EXPERIMENTAL_EXCEPTION_SAMPLING_DISTANCE=1
9393 export DD_PROFILING_EXCEPTION_MESSAGE_ENABLED=1
9494 php -v
95- php -d extension=target/release/libdatadog_php_profiling.so --ri datadog-profiling
95+ php -d extension=target/profiler- release/libdatadog_php_profiling.so --ri datadog-profiling
9696 for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions"; do
9797 mkdir -p profiling/tests/correctness/"$test_case"/
9898 export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
99- php -d extension=$PWD/target/release/libdatadog_php_profiling.so profiling/tests/correctness/"$test_case".php
99+ php -d extension=$PWD/target/profiler- release/libdatadog_php_profiling.so profiling/tests/correctness/"$test_case".php
100100 done
101101 mkdir -p profiling/tests/correctness/allocations_1byte/
102102 export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/allocations_1byte/test.pprof
103103 export DD_PROFILING_ALLOCATION_SAMPLING_DISTANCE=1
104- php -d extension=$PWD/target/release/libdatadog_php_profiling.so profiling/tests/correctness/allocations.php
104+ php -d extension=$PWD/target/profiler- release/libdatadog_php_profiling.so profiling/tests/correctness/allocations.php
105105 unset DD_PROFILING_ALLOCATION_SAMPLING_DISTANCE
106106
107107 - name : Run ZTS tests
@@ -112,11 +112,11 @@ jobs:
112112 export DD_PROFILING_EXPERIMENTAL_EXCEPTION_SAMPLING_DISTANCE=1
113113 export DD_PROFILING_EXCEPTION_MESSAGE_ENABLED=1
114114 php -v
115- php -d extension=target/release/libdatadog_php_profiling.so --ri datadog-profiling
115+ php -d extension=target/profiler- release/libdatadog_php_profiling.so --ri datadog-profiling
116116 for test_case in "exceptions_zts"; do
117117 mkdir -p profiling/tests/correctness/"$test_case"/
118118 export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
119- php -d extension=$PWD/target/release/libdatadog_php_profiling.so profiling/tests/correctness/"$test_case".php
119+ php -d extension=$PWD/target/profiler- release/libdatadog_php_profiling.so profiling/tests/correctness/"$test_case".php
120120 done
121121
122122 - name : Check profiler correctness for allocations
0 commit comments