SIGN IN SIGN UP

bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578)

Replace the child process `typeperf.exe` with a daemon thread that reads the performance counters directly.  This prevents the issues that arise from inherited handles in grandchild processes (see issue37531 for discussion).

We only use the load tracker when running tests in multiprocess mode. This prevents inadvertent interactions with tests expecting a single threaded environment.  Displaying load is really only helpful for buildbots running in multiprocess mode anyway.

Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
J
Jeremy Kloth committed
8146e6b636905d9872140c990d93308ac20d13f0
Parent: 9d59381
Committed by GitHub <noreply@github.com> on 3/22/2022, 5:21:24 PM