Add a unit test that generates a 10ms trace file (by recording goroutines doing a bunch of busywork) and prints the runnable goroutines in at the zero and 5ms time offset. It won't be clear which goroutines are runnable, so the test can only verify that there are no errors. If the test finds problems, fix them.
Try to get an instance that shows a nonzero number of runnables. If this is hard, add more work to the trace generation phase of the test, ensuring that there are many more goroutines than GOMAXPROCS.
Post result in a PR. Include the test output from an actual run.
Add a unit test that generates a 10ms trace file (by recording goroutines doing a bunch of busywork) and prints the runnable goroutines in at the zero and 5ms time offset. It won't be clear which goroutines are runnable, so the test can only verify that there are no errors. If the test finds problems, fix them.
Try to get an instance that shows a nonzero number of runnables. If this is hard, add more work to the trace generation phase of the test, ensuring that there are many more goroutines than GOMAXPROCS.
Post result in a PR. Include the test output from an actual run.