Moved perfmon functions to monitors.h