Add sink.utils.counter
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 20 Jun 2017 19:40:17 +0000 (15:40 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Jul 2017 21:26:38 +0000 (17:26 -0400)
commit14b7ef9e86ccb63ce371b741449d5ee1b8e512ed
treef418bc15908e14770bd9d477cb6be1faf2264726
parentb04a393b728e182ac31ff0b4c8f8cd657f620f65
Add sink.utils.counter

A sink.utils.counter component counts the number of received
notifications (one count per notification type) and prints the counts
every 1000 notifications (total) by default and at the end. You can
use the `step` parameter to modify how frequent the component prints
the counts:

    babeltrace /path/to/trace -c sink.utils.counter -p step=5000

You can set `step` to 0 to print the counts only at the end:

    babeltrace /path/to/trace -c sink.utils.counter -p step=0

Notifications of which the type is not known (if this component is used
in future releases of Babeltrace 2) are classified under "Other
(unknown)", which is only printed if there's at least one unknown
notification.

You can use the `hide-zero` parameter (boolean) to hide the counts which
are 0.

The goal of this component class is to have a dummy sink component with
regular updates, for debugging and benchmarking purposes.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac
plugins/text/plugin.c
plugins/utils/Makefile.am
plugins/utils/counter/Makefile.am [new file with mode: 0644]
plugins/utils/counter/counter.c [new file with mode: 0644]
plugins/utils/counter/counter.h [new file with mode: 0644]
plugins/utils/plugin.c
This page took 0.026299 seconds and 4 git commands to generate.