aboutsummaryrefslogtreecommitdiff
path: root/trappy/systrace.py
diff options
context:
space:
mode:
authorChris Redpath <chris.redpath@arm.com>2017-06-17 17:19:55 +0100
committerKP Singh <kpsingh@google.com>2017-06-27 12:08:09 +0200
commitb01c848f3928dfcdf2f3d7dae1343bbe677847ef (patch)
tree7a8c70dc08c9f1bea3f7c47ee6db67c91e197429 /trappy/systrace.py
parent55c392261a854cd219ec985cbd042e75ec0e922f (diff)
downloadtrappy-b01c848f3928dfcdf2f3d7dae1343bbe677847ef.tar.gz
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>
Diffstat (limited to 'trappy/systrace.py')
-rw-r--r--trappy/systrace.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/trappy/systrace.py b/trappy/systrace.py
index 2404f92..c7e65e4 100644
--- a/trappy/systrace.py
+++ b/trappy/systrace.py
@@ -63,6 +63,7 @@ class SysTrace(GenericFTrace):
super(SysTrace, self).__init__(name, normalize_time, scope, events,
window, abs_window)
+ self._do_parse()
try:
self._cpus = 1 + self.sched_switch.data_frame["__cpu"].max()
except AttributeError: