diff options
author | Lorenz Meier <lorenz@px4.io> | 2014-12-24 23:45:32 +0100 |
---|---|---|
committer | Lorenz Meier <lorenz@px4.io> | 2014-12-24 23:45:32 +0100 |
commit | b664fc7c8a7aaf7ab229423f6dec9cbe3ce8e3ae (patch) | |
tree | a1f44a7975b860c5c431cb46a668d5897d2a5fd3 /src/modules/systemlib/perf_counter.h | |
parent | 92eb637d00dc7bec347ddb6d2ddfd90bb27a0b34 (diff) | |
parent | 9292c8f405b0ed208443df0b1f9ebd497bb518ab (diff) | |
download | px4-firmware-b664fc7c8a7aaf7ab229423f6dec9cbe3ce8e3ae.tar.gz px4-firmware-b664fc7c8a7aaf7ab229423f6dec9cbe3ce8e3ae.tar.bz2 px4-firmware-b664fc7c8a7aaf7ab229423f6dec9cbe3ce8e3ae.zip |
Merge pull request #1531 from kd0aij/interval_var
add interrupt latency printout and mean/variance to interval perf counter
Diffstat (limited to 'src/modules/systemlib/perf_counter.h')
-rw-r--r-- | src/modules/systemlib/perf_counter.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/systemlib/perf_counter.h b/src/modules/systemlib/perf_counter.h index 668d9dfdf..d06606a5d 100644 --- a/src/modules/systemlib/perf_counter.h +++ b/src/modules/systemlib/perf_counter.h @@ -94,7 +94,7 @@ __EXPORT extern void perf_begin(perf_counter_t handle); * End a performance event. * * This call applies to counters that operate over ranges of time; PC_ELAPSED etc. - * If a call is made without a corresopnding perf_begin call, or if perf_cancel + * If a call is made without a corresponding perf_begin call, or if perf_cancel * has been called subsequently, no change is made to the counter. * * @param handle The handle returned from perf_alloc. @@ -143,6 +143,13 @@ __EXPORT extern void perf_print_counter_fd(int fd, perf_counter_t handle); __EXPORT extern void perf_print_all(int fd); /** + * Print hrt latency counters. + * + * @param fd File descriptor to print to - e.g. 0 for stdout + */ +__EXPORT extern void perf_print_latency(int fd); + +/** * Reset all of the performance counters. */ __EXPORT extern void perf_reset_all(void); |