mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 17:23:34 +08:00
px4iofirmware: add PX4IO_PERF define to completely disable perf counters
This commit is contained in:
@@ -78,6 +78,12 @@ typedef struct hrt_call {
|
||||
void *arg;
|
||||
} *hrt_call_t;
|
||||
|
||||
|
||||
#define LATENCY_BUCKET_COUNT 8
|
||||
extern const uint16_t latency_bucket_count;
|
||||
extern const uint16_t latency_buckets[LATENCY_BUCKET_COUNT];
|
||||
extern uint32_t latency_counters[LATENCY_BUCKET_COUNT + 1];
|
||||
|
||||
/**
|
||||
* Get absolute time in [us] (does not wrap).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user