History log of /external/trappy/tests/test_baretrace.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
211eeb5b8c238f6a2934b92b5bc4200b549f0780 18-Sep-2017 Valentin Schneider <valentin.schneider@arm.com> bare_trace: Fix get_duration() for window use

The previous implementation only looked at the maximum timestamp
of the traces. However, if trace windows are used to analyse a
subset of the full trace, get_duration() would return an
erroneous value:

(times are normalized)
trace = <trace built with window=[5, 10]>
print trace.get_duration()
> 10.0

This commit adds a lower-bound lookup to fix this issue.

tests/test_baretrace.py has also been updated to account
for this change.
/external/trappy/tests/test_baretrace.py
b01c848f3928dfcdf2f3d7dae1343bbe677847ef 17-Jun-2017 Chris Redpath <chris.redpath@arm.com> trappy/Parsing: Split trace class init into two phases

This patch set is to modify the parsing step so that we don't need to
build a raw and a formatted trace file. To do that, we need to know
which events should have raw output and which should use their default
formatting. The events indicate which are which, but currently we
generate the trace files before we populate the events.

Splitting the initialisation into two parts means that we can populate
the events so that a later patch can create the text trace with each
event either formatted or raw as required.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Reviewed-by: KP Singh <kpsingh@google.com>
/external/trappy/tests/test_baretrace.py
e81fdcb135d0325e3bc22fae0583555d20aae280 04-Jan-2017 Brendan Jackman <brendan.jackman@arm.com> Update ARM Ltd. copyright to 2017
/external/trappy/tests/test_baretrace.py
4ec4aee55dbd4045cfb6a2fe099615a569ce7ff7 05-Jan-2016 Javi Merino <javi.merino@arm.com> trappy: update copyright to 2016
/external/trappy/tests/test_baretrace.py
08f3c34d0a24e7ffeff543e302efc911306e7bea 21-Dec-2015 Javi Merino <javi.merino@arm.com> bare_trace: abstract some of the basic FTrace functionality to a generic BareTrace class

Part of the functionality in FTrace is generic. In order to make the
rest of trappy less dependent on FTrace, move the generic parts to a new
BareTrace class and inherit from it.
/external/trappy/tests/test_baretrace.py