BABELTRACE2-FILTER() | BABELTRACE2-FILTER() |
babeltrace2-filter.utils.trimmer - Babeltrace 2's trimmer filter component class
A Babeltrace 2 filter.utils.trimmer message iterator discards all the consumed messages with a time less than a given beginning time and greater than a given end time. It effectively “cuts”, or trims trace streams.
+-------------------+
| flt.utils.trimmer |
| | Messages -->@ in out @--> Less messages
+-------------------+
See babeltrace2-intro(7) to learn more about the Babeltrace 2 project and its core concepts.
A filter.utils.trimmer message iterator makes its upstream message iterator seek the configured beginning time (see the begin parameter) before it starts to consume messages. This seeking operation can have an effect on the times of stream beginning, packet beginning, discarded events, and discarded packets messages so that they fall within the configured trimming time range.
As such, when a filter.utils.trimmer message iterator consumes a message of which the time is greater than the configured end time (see the end parameter), it can alter the time of stream end, packet end, discarded events, and discarded packets messages so that they fall within the configured trimming time range.
A filter.utils.trimmer message iterator requires that all the upstream messages it consumes have times, except for stream beginning and end messages, returning an error status otherwise.
begin=TIME [optional string or signed integer]
If TIME is a string, see below for its format. If TIME is a signed integer, the component converts it to a string and treats it as such.
If you don’t specify this parameter, the component discards no events until the end of the trimming time range.
The format of TIME when it’s a string is one of:
YYYY-MM-DD HH:II[:SS[.NANO]] HH:II[:SS[.NANO]] [-]SEC[.NANO]
YYYY
MM
DD
HH
II
SS
NANO
SEC
If TIME has no date information, then the message iterator uses the first upstream message’s time to determine the date.
end=TIME [optional string or signed integer]
If TIME is a string, see the begin parameter for its format. If TIME is a signed integer, the component converts it to a string and treats it as such.
If you don’t specify this parameter, the component discards no events from the beginning of the trimming time range.
gmt=yes [optional boolean]
+-------------------+ | flt.utils.trimmer | | | @ in out @ +-------------------+
in
out
If you encounter any issue or usability problem, please report it on the Babeltrace bug tracker (see <https://bugs.lttng.org/projects/babeltrace>).
The Babeltrace project shares some communication channels with the LTTng project (see <https://lttng.org/>).
The Babeltrace 2 project is the result of hard work by many regular developers and occasional contributors.
The current project maintainer is Jérémie Galarneau <mailto:jeremie.galarneau@efficios.com>.
This component class is part of the Babeltrace 2 project.
Babeltrace is distributed under the MIT license (see <https://opensource.org/licenses/MIT>).