memory icon indicating copy to clipboard operation
memory copied to clipboard

add Reporter utility

Open pbnjay opened this issue 6 years ago • 0 comments

It would be useful to get notifications when long-running code uses too much memory. Then it could dynamically tune parallelism to ensure it doesn't overcommit.

Something similar to this interface would likely work:

type ReporterFunc func(percent float64)
func NewReporter(interval time.Duration, reporter ReporterFunc)

pbnjay avatar Nov 09 '17 04:11 pbnjay