doc/man: make default values of boolean init. params. clearer
[babeltrace.git] / doc / man / babeltrace2-filter.utils.trimmer.7.txt
CommitLineData
e70712b3 1= babeltrace2-filter.utils.trimmer(7)
0659f3af 2:manpagetype: component class
6f6e5e61 3:revdate: 1 September 2023
0659f3af
PP
4
5
e70712b3 6== NAME
0659f3af 7
e70712b3
PP
8babeltrace2-filter.utils.trimmer - Babeltrace 2's trimmer filter
9component class
0659f3af 10
0659f3af 11
e70712b3 12== DESCRIPTION
0659f3af 13
e70712b3
PP
14A Babeltrace~2 compcls:filter.utils.trimmer message iterator
15discards all the consumed messages with a time less than a given
16beginning time and greater than a given end time. It effectively
17``cuts'', or trims trace streams.
0659f3af 18
e70712b3
PP
19----
20 +-------------------+
21 | flt.utils.trimmer |
22 | |
23Messages -->@ in out @--> Less messages
24 +-------------------+
25----
0659f3af 26
e70712b3 27include::common-see-babeltrace2-intro.txt[]
0659f3af 28
e70712b3
PP
29A compcls:filter.utils.trimmer message iterator makes its upstream
30message iterator seek the configured beginning time (see the param:begin
31parameter) before it starts to consume messages. This seeking operation
32can have an effect on the times of stream beginning, packet beginning,
33discarded events, and discarded packets messages so that they fall
34within the configured trimming time range.
0659f3af 35
e70712b3
PP
36As such, when a compcls:filter.utils.trimmer message iterator consumes a
37message of which the time is greater than the configured end time (see
38the param:end parameter), it can alter the time of stream end, packet
39end, discarded events, and discarded packets messages so that they fall
40within the configured trimming time range.
0659f3af 41
e70712b3
PP
42A compcls:filter.utils.trimmer message iterator requires that all the
43upstream messages it consumes have times, except for stream beginning
44and end messages, returning an error status otherwise.
0659f3af
PP
45
46
e70712b3 47== INITIALIZATION PARAMETERS
0659f3af 48
e70712b3
PP
49param:begin='TIME' vtype:[optional string or signed integer]::
50 Set the trimming time range's beginning time to 'TIME'.
0659f3af 51+
e70712b3
PP
52If 'TIME' is a string, see below for its format. If 'TIME' is a signed
53integer, the component converts it to a string and treats it as such.
0659f3af
PP
54+
55If you don't specify this parameter, the component discards no events
e70712b3
PP
56until the end of the trimming time range.
57+
58The format of 'TIME' when it's a string is one of:
59+
60--
61include::common-trimmer-time-format.txt[]
62--
63+
64If 'TIME' has no date information, then the message iterator uses the
65first upstream message's time to determine the date.
0659f3af 66
e70712b3
PP
67param:end='TIME' vtype:[optional string or signed integer]::
68 Set the trimming time range's end time to 'TIME'.
0659f3af 69+
e70712b3
PP
70If 'TIME' is a string, see the param:begin parameter for its format. If
71'TIME' is a signed integer, the component converts it to a string and
72treats it as such.
0659f3af
PP
73+
74If you don't specify this parameter, the component discards no events
e70712b3 75from the beginning of the trimming time range.
0659f3af 76
6f6e5e61
PP
77param:gmt='VAL' vtype:[optional boolean]::
78 If 'VAL' is true, then set the time zone of the param:begin and
79 param:end parameters to GMT instead of the local time zone.
80+
81Default: false.
0659f3af 82
0659f3af 83
e70712b3
PP
84== PORTS
85
86----
87+-------------------+
88| flt.utils.trimmer |
89| |
90@ in out @
91+-------------------+
92----
0659f3af 93
0659f3af 94
e70712b3 95=== Input
0659f3af 96
e70712b3
PP
97`in`::
98 Single input port.
0659f3af
PP
99
100
e70712b3 101=== Output
0659f3af 102
e70712b3
PP
103`out`::
104 Single output port.
0659f3af
PP
105
106
107include::common-footer.txt[]
108
109
e70712b3
PP
110== SEE ALSO
111
112man:babeltrace2-intro(7),
113man:babeltrace2-plugin-utils(7)
This page took 0.05987 seconds and 4 git commands to generate.