8080 export DD_PROFILING_EXCEPTION_MESSAGE_ENABLED=1
8181 php -v
8282 php -d extension=target/profiler-release/libdatadog_php_profiling.so --ri datadog-profiling
83- for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions" "io"; do
83+ for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions" "io" "allocation_time_combined" ; do
8484 mkdir -p profiling/tests/correctness/"$test_case"/
8585 export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
8686 php -d extension="${PWD}/target/profiler-release/libdatadog_php_profiling.so" "profiling/tests/correctness/${test_case}.php"
9898 export DD_PROFILING_EXCEPTION_MESSAGE_ENABLED=1
9999 php -v
100100 php -d extension=target/profiler-release/libdatadog_php_profiling.so --ri datadog-profiling
101- for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions" "io"; do
101+ for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions" "io" "allocation_time_combined" ; do
102102 mkdir -p profiling/tests/correctness/"$test_case"/
103103 export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
104104 php -d extension=$PWD/target/profiler-release/libdatadog_php_profiling.so profiling/tests/correctness/"$test_case".php
@@ -113,26 +113,6 @@ jobs:
113113 USE_ZEND_ALLOC=0 php -d extension=$PWD/target/profiler-release/libdatadog_php_profiling.so profiling/tests/correctness/allocations.php
114114 unset DD_PROFILING_ALLOCATION_SAMPLING_DISTANCE
115115
116- - name : Run allocation_time_combined test (PHP 8.4+)
117- if : fromJSON(matrix.php-version) >= 8.4
118- run : |
119- export DD_PROFILING_LOG_LEVEL=trace
120- export DD_PROFILING_EXPERIMENTAL_FEATURES_ENABLED=1
121- export DD_PROFILING_EXPERIMENTAL_EXCEPTION_SAMPLING_DISTANCE=1
122- export DD_PROFILING_EXCEPTION_MESSAGE_ENABLED=1
123- php -v
124- php -d extension=target/profiler-release/libdatadog_php_profiling.so --ri datadog-profiling
125- mkdir -p profiling/tests/correctness/allocation_time_combined/
126- export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/allocation_time_combined/test.pprof
127- export DD_PROFILING_ALLOCATION_ENABLED=yes
128- export DD_PROFILING_ALLOCATION_SAMPLING_DISTANCE=1
129- export DD_PROFILING_WALL_TIME_ENABLED=yes
130- export DD_PROFILING_EXPERIMENTAL_CPU_TIME_ENABLED=no
131- export DD_PROFILING_ENDPOINT_COLLECTION_ENABLED=no
132- export EXECUTION_TIME=5
133- php -d extension=$PWD/target/profiler-release/libdatadog_php_profiling.so profiling/tests/correctness/allocation_time_combined.php
134- unset DD_PROFILING_ALLOCATION_ENABLED DD_PROFILING_ALLOCATION_SAMPLING_DISTANCE DD_PROFILING_WALL_TIME_ENABLED DD_PROFILING_EXPERIMENTAL_CPU_TIME_ENABLED DD_PROFILING_ENDPOINT_COLLECTION_ENABLED EXECUTION_TIME
135-
136116 - name : Run ZTS tests
137117 if : matrix.phpts == 'zts'
138118 run : |
@@ -185,7 +165,6 @@ jobs:
185165 pprof_path : profiling/tests/correctness/timeline/
186166
187167 - name : Check profiler correctness for allocation_time_combined
188- if : fromJSON(matrix.php-version) >= 8.4
189168 uses : Datadog/prof-correctness/analyze@main
190169 with :
191170 expected_json : profiling/tests/correctness/allocation_time_combined.json
0 commit comments