tracetools_read.trace module

Module with functions for reading traces.

tracetools_read.trace.event_to_dict(event: babeltrace.babeltrace.Event) Dict[str, Any]

Convert name, timestamp, and all other keys except those in IGNORED_FIELDS into a dictionary.

Parameters:

event – the event to convert

Returns:

the event as a dictionary

tracetools_read.trace.get_trace_ctf_events(trace_directory: str) Iterable[babeltrace.babeltrace.Event]

Get the events of a trace.

Parameters:

trace_directory – the path to the main/top trace directory

Returns:

events iterable

tracetools_read.trace.get_trace_events(trace_directory: str) List[Dict[str, Any]]

Get the events of a trace.

Parameters:

trace_directory – the path to the main/top trace directory

Returns:

events

tracetools_read.trace.is_trace_directory(path: str) bool

Check recursively if a path is a trace directory.

Parameters:

path – the path to check

Returns:

True if it is a trace directory, False otherwise