History log of /external/trappy/trappy/bare_trace.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
101592273c8bdf29d95d321a86189666d88a9ddb 18-Sep-2017 Brendan Jackman <bjackman@users.noreply.github.com> Merge pull request #268 from valschneider/get_duration-fix

bare_trace: Fix get_duration() for window use
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/trappy/bare_trace.py
8a253f227ad6b1c8a2076913d30f5ed01ac92abd 07-Aug-2017 Michele Di Giorgio <michele.digiorgio@arm.com> bare_trace: fix signature of generate_data_dict

Classes that implement the generate_data_dict method have an additional argument
to the signature. This leads to errors in case the base class method is called
with the additional argument.

This patch also adds two tests for FTrace and SysTrace parsing.
/external/trappy/trappy/bare_trace.py
cd7f2e045fa07bb14433a6506ab8756e94cd0f19 30-Jun-2017 Joel Fernandes <joelaf@google.com> trappy/caching: Couple of fixes

- json params loading represents keys as unicode, use dumps to fix it
- finalize_objects need to be run always for cases where some events not
cached, fix it by moving it up and also handle bjackman's concern that we run
it twice by skipping finalize for cached events.
- fix time normalization breakage as a result of the above changes

Change-Id: I2011de0ae8112e937ee61baee8d53a63d0bbe85a
Signed-off-by: Joel Fernandes <joelaf@google.com>
/external/trappy/trappy/bare_trace.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/trappy/bare_trace.py
02c452ef5bcfafe49450059f7927664a393e0235 23-Apr-2017 Joel Fernandes <joelaf@google.com> trappy: Split out parsing of trace string into separate function

In preparation of being able to parse systrace, split out data string
processing into separate function so it can be overridden by sub classes.

Signed-off-by: Joel Fernandes <joelaf@google.com>
Reviewed-by: KP Singh <kpsingh@google.com>
/external/trappy/trappy/bare_trace.py
e81fdcb135d0325e3bc22fae0583555d20aae280 04-Jan-2017 Brendan Jackman <brendan.jackman@arm.com> Update ARM Ltd. copyright to 2017
/external/trappy/trappy/bare_trace.py
4ec4aee55dbd4045cfb6a2fe099615a569ce7ff7 05-Jan-2016 Javi Merino <javi.merino@arm.com> trappy: update copyright to 2016
/external/trappy/trappy/bare_trace.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/trappy/bare_trace.py