Skip to content

improve unit test for tracerunnable #8

Description

@tbg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions