doc/man: make default values of boolean init. params. clearer
[babeltrace.git] / doc / man / babeltrace2-sink.utils.counter.7.txt
CommitLineData
2facbdc3 1= babeltrace2-sink.utils.counter(7)
838dd456 2:manpagetype: component class
75daa108 3:revdate: 1 September 2023
838dd456
PP
4
5
2facbdc3
PP
6== NAME
7
8babeltrace2-sink.utils.counter - Babeltrace 2's message counter sink
838dd456
PP
9component class
10
11
2facbdc3
PP
12== DESCRIPTION
13
14A Babeltrace~2 compcls:sink.utils.counter component prints to the
15standard output the number of messages it consumes with a count for each
16type.
17
18----
19 +--------------------+
20 | sink.utils.counter |
21 | +--> Statistics to the
22Messages -->@ in | standard output
23 +--------------------+
24----
25
26include::common-see-babeltrace2-intro.txt[]
838dd456
PP
27
28The component's output looks like this:
29
30----
2facbdc3
PP
31 3842964 Event messages
32 4 Stream beginning messages
33 1 Stream end messages
34 18 Packet beginning messages
35 14 Packet end messages
36 189 Discarded event messages
37 0 Discarded packet messages
38 3 Message iterator inactivity messages
39 3843000 messages (TOTAL)
838dd456
PP
40----
41
42By default, a compcls:sink.utils.counter component prints a new block of
2facbdc3
PP
43statistics every 1000 consumed messages, whatever their types. You can
44use the param:step parameter to override this default period.
838dd456
PP
45
46The component always prints a block of statistics when there's no more
2facbdc3
PP
47messages to consume from its upstream message iterator and the last
48block was different.
838dd456
PP
49
50By default, a compcls:sink.utils.counter component prints the count of
2facbdc3
PP
51messages for each type, even if this count is 0. You can make it hide
52the zero counts with the param:hide-zero parameter.
838dd456
PP
53
54
2facbdc3 55== INITIALIZATION PARAMETERS
838dd456 56
75daa108
PP
57param:hide-zero='VAL' vtype:[optional boolean]::
58 If 'VAL' is true, then do not print the statistics lines where the
59 count is zero.
60+
61Default: false.
838dd456 62
2facbdc3
PP
63param:step='STEP' vtype:[optional unsigned integer]::
64 Print a new block of statistics every 'STEP' consumed messages
65 instead of 1000.
66+
67If 'STEP' is 0, then the component only prints statistics when there's
68no more messages to consume.
838dd456
PP
69
70
2facbdc3 71== PORTS
838dd456 72
2facbdc3
PP
73----
74+--------------------+
75| sink.utils.counter |
76| |
77@ in |
78+--------------------+
79----
838dd456 80
838dd456 81
2facbdc3 82=== Input
838dd456 83
2facbdc3
PP
84`in`::
85 Single input port.
838dd456
PP
86
87
88include::common-footer.txt[]
89
90
2facbdc3
PP
91== SEE ALSO
92
93man:babeltrace2-intro(7),
94man:babeltrace2-plugin-utils(7)
This page took 0.050899 seconds and 4 git commands to generate.