[RESEND RFC PATCH v1 11/20] mm: calculate ksm process profit metric