I suggest looking into the builtin performance metrics, stuff like stat unit

HTH