perf tools: Move units conversion/formatting routines to separate object