Skip to content

Commit c6da6b1

Browse files
committed
Windows timers have less resolution, increase amount
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
1 parent 92fe6c4 commit c6da6b1

6 files changed

Lines changed: 8 additions & 4 deletions

tests/ext/live-debugger/debugger_log_probe.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ DD_TRACE_AGENT_PORT=80
88
DD_TRACE_GENERATE_ROOT_SPAN=0
99
DD_DYNAMIC_INSTRUMENTATION_ENABLED=1
1010
DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS=0.1
11+
DD_DYNAMIC_INSTRUMENTATION_CAPTURE_TIMEOUT_MS=5000
1112
--INI--
1213
datadog.trace.agent_test_session_token=live-debugger/log_probe
1314
--FILE--

tests/ext/live-debugger/debugger_log_probe_capture_timeout.phpt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ await_probe_installation(function() {
2929
\DDTrace\start_span();
3030
});
3131

32-
// 2-level array: 100 outer x 100 inner strings (100-char each)
33-
// ~10,000 capture operations: reliably exceeds the 1ms CPU-time timeout
34-
// Sentinel is at the very last position [99][99]
32+
// 3-level array: 10 outer x 100 mid x 100 inner strings (100-char each)
33+
// ~100,000 capture operations: reliably exceeds the 1ms CPU-time timeout
3534
$data = [];
3635
for ($i = 0; $i < 99; $i++) {
37-
$data[] = array_fill(0, 100, str_repeat('x', 100));
36+
$data[] = array_fill(0, 10, array_fill(0, 100, str_repeat('x', 100)));
3837
}
3938
$last = array_fill(0, 99, str_repeat('x', 100));
4039
$last[] = 'LAST_SENTINEL';

tests/ext/live-debugger/debugger_span_decoration_probe.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ DD_TRACE_AGENT_PORT=80
88
DD_TRACE_GENERATE_ROOT_SPAN=0
99
DD_DYNAMIC_INSTRUMENTATION_ENABLED=1
1010
DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS=0.1
11+
DD_DYNAMIC_INSTRUMENTATION_CAPTURE_TIMEOUT_MS=5000
1112
--INI--
1213
datadog.trace.agent_test_session_token=live-debugger/span_decoration_probe
1314
--FILE--

tests/ext/live-debugger/exception-replay_001.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ DD_TRACE_AGENT_PORT=80
99
DD_TRACE_GENERATE_ROOT_SPAN=0
1010
DD_EXCEPTION_REPLAY_ENABLED=1
1111
DD_EXCEPTION_REPLAY_CAPTURE_INTERVAL_SECONDS=1
12+
DD_DYNAMIC_INSTRUMENTATION_CAPTURE_TIMEOUT_MS=5000
1213
--INI--
1314
datadog.trace.agent_test_session_token=live-debugger/exception-replay_001
1415
--FILE--

tests/ext/live-debugger/exception-replay_002.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ DD_TRACE_AGENT_PORT=80
88
DD_TRACE_GENERATE_ROOT_SPAN=0
99
DD_EXCEPTION_REPLAY_ENABLED=1
1010
DD_EXCEPTION_REPLAY_CAPTURE_INTERVAL_SECONDS=1
11+
DD_DYNAMIC_INSTRUMENTATION_CAPTURE_TIMEOUT_MS=5000
1112
--INI--
1213
datadog.trace.agent_test_session_token=live-debugger/exception-replay_002
1314
--FILE--

tests/ext/live-debugger/exception-replay_non_regression_2989_mysqli.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ DD_TRACE_AGENT_PORT=80
1010
DD_TRACE_GENERATE_ROOT_SPAN=0
1111
DD_EXCEPTION_REPLAY_ENABLED=1
1212
DD_EXCEPTION_REPLAY_CAPTURE_INTERVAL_SECONDS=1
13+
DD_DYNAMIC_INSTRUMENTATION_CAPTURE_TIMEOUT_MS=5000
1314
--INI--
1415
datadog.trace.agent_test_session_token=live-debugger/non_regression_2989_mysqli
1516
--FILE--

0 commit comments

Comments
 (0)