39 #include <px4_platform_common/px4_config.h> 40 #include <px4_platform_common/posix.h> 52 if ((cc == NULL) || (ec == NULL)) {
53 printf(
"perf: counter alloc failed\n");
62 printf(
"perf: expect count of 4\n");
65 printf(
"perf: expect count of 1\n");
67 printf(
"perf: expect at least two counters\n");
measure the time elapsed performing an event
count the number of times an event occurs
void perf_count(perf_counter_t handle)
Count a performance event.
void perf_free(perf_counter_t handle)
Free a counter.
int test_perf(int argc, char *argv[])
void perf_print_all(int fd)
Print all of the performance counters.
void perf_end(perf_counter_t handle)
End a performance event.
void perf_print_counter(perf_counter_t handle)
Print one performance counter to stdout.
void perf_begin(perf_counter_t handle)
Begin a performance event.
Performance measuring tools.