pub fn active() -> bool
True while a collector records on this thread — for a measurement that costs something (a directory walk) and is worth skipping otherwise.