Inherits Reference / Object
Returns a callback to be triggered every statistics.interval.ms (configured separately)
The callback writes the statistics to the given file path.