Skip to content

Commit

Permalink
ref(profiling): Use sleep scheduler by default (#1729)
Browse files Browse the repository at this point in the history
The sleep scheduler is the most reliable of the available schedulers, make it
the default.
  • Loading branch information
Zylphrex authored Nov 8, 2022
1 parent d8a69fd commit e6238d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_sdk/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def setup_profiler(options):
# a capcity of `buffer_secs * frequency`.
_sample_buffer = SampleBuffer(capacity=buffer_secs * frequency)

profiler_mode = options["_experiments"].get("profiler_mode", SigprofScheduler.mode)
profiler_mode = options["_experiments"].get("profiler_mode", SleepScheduler.mode)
if profiler_mode == SigprofScheduler.mode:
_scheduler = SigprofScheduler(sample_buffer=_sample_buffer, frequency=frequency)
elif profiler_mode == SigalrmScheduler.mode:
Expand Down

1 comment on commit e6238d8

@vercel
Copy link

@vercel vercel bot commented on e6238d8 Nov 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.