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 20:20:41 +0000 (16:20 -0400)
commit358340ece4f5ce33eee2c763c86a18383e0ccc85
treeed3d7de42fbdb146de73e5972a93f0c045567fb0
parent2ec84d269adb6770ff512a8943e020bd9e9f9ffb
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.025903 seconds and 4 git commands to generate.