You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(profiling): restart the profiler on uwsgi fork (#2295) (#2302)
In uWSGI, the current code starts in the forked process the ProfilerInstance
that has been created in the master process. That actually works fine, except
all Events are discarded by the Recorder because its `pid` attribute is not
updated: it is still the pid of the master process.
Using the `_restart_on_fork` method makes sure that the `ProfilerInstance` gets
a new `Recorder` object with the correct PID.
The test is updated to not test only for file presence, but making sure that
there is at least one sample included.
This removes test_call_script_pprof_output_interval as it is flaky by
construction and fails with the new extended test.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit ea5992b)
Co-authored-by: Julien Danjou <[email protected]>
Co-authored-by: Kyle Verhoog <[email protected]>
0 commit comments