Function grind_get_utilization
Defined in File grind.h
Function Documentation
-
double grind_get_utilization(struct grinder *the_grinder, const char *const name)
Get utilization for a grindee.
For timing-related grinding:
If RCSW_GRIND_INTERVAL passed: utilization is fraction of the timeout interval attributed to the specified grindee. Otherwise it is the fraction of the total amount of time spent by all grindees attributed to the specified grindee.
For counting relating grinding: utilization is the fraction of the total # of execution counts for all grindees attributed to the specified grindee.
- Returns:
The utilization, or -1 on ERROR.