aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib/perf_counter.h
diff options
context:
space:
mode:
authorMark Whitehorn <kd0aij@gmail.com>2014-12-20 10:27:02 -0700
committerMark Whitehorn <kd0aij@gmail.com>2014-12-24 14:06:05 -0700
commit9292c8f405b0ed208443df0b1f9ebd497bb518ab (patch)
treea1f44a7975b860c5c431cb46a668d5897d2a5fd3 /src/modules/systemlib/perf_counter.h
parent92eb637d00dc7bec347ddb6d2ddfd90bb27a0b34 (diff)
downloadpx4-firmware-9292c8f405b0ed208443df0b1f9ebd497bb518ab.tar.gz
px4-firmware-9292c8f405b0ed208443df0b1f9ebd497bb518ab.tar.bz2
px4-firmware-9292c8f405b0ed208443df0b1f9ebd497bb518ab.zip
add interrupt latency printout command and mean/variance to interval performance counter
Diffstat (limited to 'src/modules/systemlib/perf_counter.h')
-rw-r--r--src/modules/systemlib/perf_counter.h9
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);