Expand description
The sampler’s own thread. The sampler used to be a task on srv’s runtime, so
when the runtime stopped running tasks (the log’s runtime-stall: lines), the
tick that measures the machine waited with everything else, and the CPU chart
showed a hole exactly when the machine was busiest. On its own OS thread, with
a runtime of its own that holds nothing else, the tick is only as late as the
operating system is.
Functions§
- spawn
- Starts the sampling loop on a thread of its own. It runs until
stopis set (within one interval), which only a test does.