perf: Allow printing to arbritrary fds
Log perf counters