forked from Archive/PX4-Autopilot
platforms: move latency_buckets to perf.c
This commit is contained in:
parent
6466e690fe
commit
f0ce300744
|
@ -54,11 +54,6 @@
|
||||||
|
|
||||||
static struct sq_queue_s callout_queue;
|
static struct sq_queue_s callout_queue;
|
||||||
|
|
||||||
/* latency histogram */
|
|
||||||
#define LATENCY_BUCKET_COUNT 8
|
|
||||||
__EXPORT const uint16_t latency_bucket_count = LATENCY_BUCKET_COUNT;
|
|
||||||
__EXPORT const uint16_t latency_buckets[LATENCY_BUCKET_COUNT] = { 1, 2, 5, 10, 20, 50, 100, 1000 };
|
|
||||||
__EXPORT uint32_t latency_counters[LATENCY_BUCKET_COUNT + 1];
|
|
||||||
|
|
||||||
static void hrt_call_reschedule(void);
|
static void hrt_call_reschedule(void);
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,13 @@
|
||||||
__EXPORT int perf_main(int argc, char *argv[]);
|
__EXPORT int perf_main(int argc, char *argv[]);
|
||||||
|
|
||||||
|
|
||||||
|
/* latency histogram */
|
||||||
|
#define LATENCY_BUCKET_COUNT 8
|
||||||
|
__EXPORT const uint16_t latency_bucket_count = LATENCY_BUCKET_COUNT;
|
||||||
|
__EXPORT const uint16_t latency_buckets[LATENCY_BUCKET_COUNT] = { 1, 2, 5, 10, 20, 50, 100, 1000 };
|
||||||
|
__EXPORT uint32_t latency_counters[LATENCY_BUCKET_COUNT + 1];
|
||||||
|
|
||||||
|
|
||||||
static void print_usage(void)
|
static void print_usage(void)
|
||||||
{
|
{
|
||||||
PRINT_MODULE_DESCRIPTION("Tool to print performance counters");
|
PRINT_MODULE_DESCRIPTION("Tool to print performance counters");
|
||||||
|
|
Loading…
Reference in New Issue