Minimalistic library for collecting metrics during script execution