lib: rename include dir to babeltrace2
[babeltrace.git] / doc / man / babeltrace-sink.utils.counter.7.txt
CommitLineData
0659f3af
PP
1babeltrace-sink.utils.counter(7)
2================================
3:manpagetype: component class
4:revdate: 5 October 2017
5
6
7NAME
8----
9babeltrace-sink.utils.counter - Babeltrace's notification counter sink
10component class
11
12
13DESCRIPTION
14-----------
15The Babeltrace compcls:sink.utils.counter component class, provided by
16the man:babeltrace-plugin-utils(7) plugin, once instantiated, prints to
17the standard output the number of notifications it receives on its input
18port, with a count for each type.
19
20The component's output looks like this:
21
22----
23 664891 events
24 12 stream beginnings
25 0 stream ends
26 93 packet beginnings
27 81 packet ends
28 0 inactivities
29 6 discarded events notifications
30 375378 known discarded events
31 2 discarded packets notifications
32 5 known discarded packets
33 1040455 notifications (TOTAL)
34----
35
36By default, a compcls:sink.utils.counter component prints a new block of
37statistics every 1000 received notifications, whatever their types. You
38can use the param:step parameter to override this default period.
39
40The component always prints a block of statistics when there's no more
41notifications to receive from its input port and the last block was
42different.
43
44By default, a compcls:sink.utils.counter component prints the count of
45notifications for each type, even if this count is 0. You can make it
46hide the zero counts with the param:hide-zero parameter.
47
48
49INITIALIZATION PARAMETERS
50-------------------------
51The following parameters are optional.
52
53param:hide-zero=`yes` (boolean)::
54 Do not print the statistics lines where the count is zero.
55
56param:step='STEP' (integer)::
57 Print a new block of statistics every 'STEP' received notifications
58 instead of 1000. If 'STEP' is 0, then the component only prints
59 statistics when there's no more notifications to receive.
60
61
62PORTS
63-----
64Input
65~~~~~
66`in`::
67 Single input port from which the component receives the
68 notifications to count.
69
70
71QUERY OBJECTS
72-------------
73This component class has no objects to query.
74
75
76ENVIRONMENT VARIABLES
77---------------------
78include::common-common-compat-env.txt[]
79
80
81include::common-footer.txt[]
82
83
84SEE ALSO
85--------
86man:babeltrace-plugin-utils(7),
87man:babeltrace-intro(7)
This page took 0.031081 seconds and 4 git commands to generate.