36 #include <px4_platform_common/px4_config.h> 37 #include <px4_platform_common/module.h> 49 PRINT_MODULE_DESCRIPTION(
"Tool to print performance counters");
51 PRINT_MODULE_USAGE_NAME_SIMPLE(
"perf",
"command");
52 PRINT_MODULE_USAGE_COMMAND_DESCR(
"reset",
"Reset all counters");
53 PRINT_MODULE_USAGE_COMMAND_DESCR(
"latency",
"Print HRT timer latency histogram");
55 PRINT_MODULE_USAGE_PARAM_COMMENT(
"Prints all performance counters if no arguments given");
62 if (strcmp(argv[1],
"reset") == 0) {
66 }
else if (strcmp(argv[1],
"latency") == 0) {
__EXPORT int perf_main(int argc, char *argv[])
void perf_reset_all(void)
Reset all of the performance counters.
void perf_print_all(int fd)
Print all of the performance counters.
static void print_usage(void)
void perf_print_latency(int fd)
Print hrt latency counters.
Performance measuring tools.