Struct grinder

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 n_inst

How many grindee are we managing?

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

bool_t avail

One or more grindees are ready to report

bool_t in_interval

That the timeout interval has begun (timing-related modes only)

uint32_t flags

Configuration flags. Valid flags are:

All other flags are ignored.

struct grindee *grindees
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.