@@ -55,13 +55,30 @@ jobs:
55
55
target/
56
56
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
57
57
58
+ - name : Run no profile test
59
+ run : |
60
+ export DD_PROFILING_ENABLED=Off
61
+ export DD_PROFILING_EXPERIMENTAL_TIMELINE_ENABLED=1
62
+ export DD_PROFILING_EXPERIMENTAL_EXCEPTION_ENABLED=1
63
+ export DD_PROFILING_EXPERIMENTAL_EXCEPTION_SAMPLING_DISTANCE=1
64
+ php -d extension=target/release/libdatadog_php_profiling.so --ri datadog-profiling
65
+ for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions"; do
66
+ mkdir -p profiling/tests/correctness/"$test_case"/
67
+ export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
68
+ php -d extension=$PWD/target/release/libdatadog_php_profiling.so profiling/tests/correctness/"$test_case".php
69
+ if [ -f "$DD_PROFILING_OUTPUT_PPROF".1.lz4 ]; then
70
+ echo "File $DD_PROFILING_OUTPUT_PPROF.1.lz4 should not exist!"
71
+ exit 1;
72
+ fi
73
+ done
74
+
58
75
- name : Run tests
59
76
run : |
60
77
export DD_PROFILING_LOG_LEVEL=trace
61
78
export DD_PROFILING_EXPERIMENTAL_TIMELINE_ENABLED=1
62
79
export DD_PROFILING_EXPERIMENTAL_EXCEPTION_ENABLED=1
63
80
export DD_PROFILING_EXPERIMENTAL_EXCEPTION_SAMPLING_DISTANCE=1
64
- php -d extension=target/release/libdatadog_php_profiling.so -v
81
+ php -d extension=target/release/libdatadog_php_profiling.so --ri datadog-profiling
65
82
for test_case in "allocations" "time" "strange_frames" "timeline" "exceptions"; do
66
83
mkdir -p profiling/tests/correctness/"$test_case"/
67
84
export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
0 commit comments