Struct grinder
Defined in File grind.h
Struct Documentation
-
struct grinder
Structure for tracking timing, execution count, etc. information gathered about a running application.
Public Members
-
enum grind_mode mode
What is our mode of operation?
-
size_t res
How many counts of a grindee being executed will be averaged to form a single entry in the grindee’s metric table
-
uint32_t flags
Configuration flags. Valid flags are:
All other flags are ignored.
-
struct timespec interval
Timeout to reset statistics
-
struct timespec interval_start
Time call to /\ref grind_capture_tick() was made. Used for determining if/when to reset statistics for ALL instances if RCSW_GRIND_INTERVAL was passed.
-
struct timespec (*gettime)(void)
Callback to return the current time for a grindee. Can be NULL in ekRCSW_GRIND_COUNT mode.
-
enum grind_mode mode