Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6238d8

Browse files
authored
ref(profiling): Use sleep scheduler by default (getsentry#1729)
The sleep scheduler is the most reliable of the available schedulers, make it the default.
1 parent d8a69fd commit e6238d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def setup_profiler(options):
121121
# a capcity of `buffer_secs * frequency`.
122122
_sample_buffer = SampleBuffer(capacity=buffer_secs * frequency)
123123

124-
profiler_mode = options["_experiments"].get("profiler_mode", SigprofScheduler.mode)
124+
profiler_mode = options["_experiments"].get("profiler_mode", SleepScheduler.mode)
125125
if profiler_mode == SigprofScheduler.mode:
126126
_scheduler = SigprofScheduler(sample_buffer=_sample_buffer, frequency=frequency)
127127
elif profiler_mode == SigalrmScheduler.mode:

0 commit comments

Comments
 (0)