aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib/perf_counter.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-05-24 11:58:43 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-05-24 11:58:43 +0200
commitc00eaaf295b1804181a724134115f299fd0ad399 (patch)
treefa50c264fa2c8bbffe6b272437b3b6e23b98a0fd /src/modules/systemlib/perf_counter.h
parentcd730eb0f6bef2286d216bc6b8e1b3634cf1cda5 (diff)
parentd3d2d1958e93b8fd68f994d4c0054a4dc2886590 (diff)
downloadpx4-firmware-c00eaaf295b1804181a724134115f299fd0ad399.tar.gz
px4-firmware-c00eaaf295b1804181a724134115f299fd0ad399.tar.bz2
px4-firmware-c00eaaf295b1804181a724134115f299fd0ad399.zip
Merge remote-tracking branch 'upstream/master' into mtecs
Diffstat (limited to 'src/modules/systemlib/perf_counter.h')
-rw-r--r--src/modules/systemlib/perf_counter.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/modules/systemlib/perf_counter.h b/src/modules/systemlib/perf_counter.h
index d8f69fdbf..6835ee4a2 100644
--- a/src/modules/systemlib/perf_counter.h
+++ b/src/modules/systemlib/perf_counter.h
@@ -121,16 +121,26 @@ __EXPORT extern void perf_cancel(perf_counter_t handle);
__EXPORT extern void perf_reset(perf_counter_t handle);
/**
- * Print one performance counter.
+ * Print one performance counter to stdout
*
* @param handle The counter to print.
*/
__EXPORT extern void perf_print_counter(perf_counter_t handle);
/**
+ * Print one performance counter to a fd.
+ *
+ * @param fd File descriptor to print to - e.g. 0 for stdout
+ * @param handle The counter to print.
+ */
+__EXPORT extern void perf_print_counter_fd(int fd, perf_counter_t handle);
+
+/**
* Print all of the performance counters.
+ *
+ * @param fd File descriptor to print to - e.g. 0 for stdout
*/
-__EXPORT extern void perf_print_all(void);
+__EXPORT extern void perf_print_all(int fd);
/**
* Reset all of the performance counters.