trappy.systrace module

class trappy.systrace.SysTrace(path='.', name='', normalize_time=True, scope='all', events=[], window=(0, None), abs_window=(0, None))[source]

Bases: trappy.ftrace.GenericFTrace

A wrapper that parses all events of a SysTrace run

It receives the same parameters as trappy.ftrace.FTrace.

trace_hasnt_finished()[source]

Return a function that returns True while the current line is still part of the trace

In Systrace, the first line that is not part of the trace is </script>. There’s a further “<!– END TRACE –>” but there’s not point scanning for it, we should stop parsing as soon as we see the </script>

trace_hasnt_started()[source]
class trappy.systrace.drop_before_trace[source]

Bases: object

Object that, when called, returns True if the line is not part of the trace

We have to first look for the “<!– BEGIN TRACE –>” and then skip the headers that start with #