summaryrefslogtreecommitdiff
path: root/docs/doxygen/other
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2013-09-06 13:25:43 -0400
committerTom Rondeau <tom@trondeau.com>2013-09-06 13:25:43 -0400
commite24e6d149ae6395c93d8c0df4d806e05971fc281 (patch)
tree41d5756a440cf35f0a1f8b2a30dbd434b8bd9faf /docs/doxygen/other
parent08ea1feffdd64cc492c68adcd7dab89166481dba (diff)
runtime: Added a Performance Counter that stores the accumulated work_time counter (work_time_total).
Diffstat (limited to 'docs/doxygen/other')
-rw-r--r--docs/doxygen/other/perf_counters.dox19
1 files changed, 10 insertions, 9 deletions
diff --git a/docs/doxygen/other/perf_counters.dox b/docs/doxygen/other/perf_counters.dox
index 518b04e780..c09f17c029 100644
--- a/docs/doxygen/other/perf_counters.dox
+++ b/docs/doxygen/other/perf_counters.dox
@@ -5,7 +5,7 @@
Each block can have a set of Performance Counters that the schedule
keeps track of. These counters measure and store information about
different performance metrics of their operation. The concept is
-fairly extensible, but currently, GNU Radio defines five types of
+fairly extensible, but currently, GNU Radio defines the following
Performance Counters:
\li noutput_items: number of items the block can produce.
@@ -13,20 +13,21 @@ Performance Counters:
\li input_buffers_full: % of how full each input buffer is.
\li output_buffers_full: % of how full each output buffer is.
\li work_time: number of CPU ticks during the call to general_work().
+\li work_time_total: Accumulated sum of work_time.
-For each Performance Counter, we can retrieve the instantaneous,
-average, and variance from the block. Access to these counters is done
-through a simple set of functions added to every block in the
-flowgraph:
+For each Performance Counter except the work_time_total, we can
+retrieve the instantaneous, average, and variance from the
+block. Access to these counters is done through a simple set of
+functions added to every block in the flowgraph:
\code
float pc_<name>[_<type>]();
\endcode
-In the above, the \<name\> field is one of the five counters in the
-above list of counters. The optional \<type\> suffix is either 'avg' to
-get the average value or 'var' to get the variance. Without a suffix,
-the function returns the most recent instantaneous value.
+In the above, the \<name\> field is one of the counters in the above
+list of counters. The optional \<type\> suffix is either 'avg' to get
+the average value or 'var' to get the variance. Without a suffix, the
+function returns the most recent instantaneous value.
We can also reset the Performance Counters back to zero to remove any
history of the current average and variance calculations for a