Skip to content

Stop the profiler if aggregate period is not positive#190

Merged
kriszyp merged 9 commits intomainfrom
stop-profiler-with-non-positive-integer
Mar 5, 2026
Merged

Stop the profiler if aggregate period is not positive#190
kriszyp merged 9 commits intomainfrom
stop-profiler-with-non-positive-integer

Conversation

@kriszyp
Copy link
Member

@kriszyp kriszyp commented Mar 4, 2026

I am not exactly sure how this happens, but every once in a while the profiler will start with the default profiler time period and then later detect that it is disabled (due to a null or negative value). Passing in a negative value to setTimeout causes the profiler to get stuck in high-frequency restarts which is a big problem. This breaks out of that.

And I had to pull in Nathan's PR to get the tests to pass.

@kriszyp kriszyp changed the title Stop the profiler if we the aggregate period is set to a negative value Stop the profiler if aggregate period is not positive Mar 5, 2026
@kriszyp kriszyp marked this pull request as ready for review March 5, 2026 15:14
@kriszyp kriszyp requested a review from a team as a code owner March 5, 2026 15:14
@kriszyp kriszyp merged commit bb1dc07 into main Mar 5, 2026
24 of 25 checks passed
@kriszyp kriszyp deleted the stop-profiler-with-non-positive-integer branch March 5, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants