diff options
author | Chris Redpath <chris.redpath@arm.com> | 2017-06-17 16:25:49 +0100 |
---|---|---|
committer | KP Singh <kpsingh@google.com> | 2017-06-27 12:06:44 +0200 |
commit | 55c392261a854cd219ec985cbd042e75ec0e922f (patch) | |
tree | 42163cf5a03c095f0658cf92cd68defee3dbf69f | |
parent | 3b9f139fdcdb086e7ac8314a4beb3441a0b1418c (diff) | |
download | trappy-55c392261a854cd219ec985cbd042e75ec0e922f.tar.gz |
trappy/parsing: Ensure parse_raw is set for sched_switch events
When the sched_switch event is added to the parser the constructor is
not called so we never set the parse_raw flag. Ensure there is a class
variable to hold the correct value and use it in the constructor.
We use the raw file to extract the events since we actually do construct
one of these objects during parsing.
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Reviewed-by: KP Singh <kpsingh@google.com>
-rw-r--r-- | trappy/sched.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trappy/sched.py b/trappy/sched.py index 4a68f6a..84e30be 100644 --- a/trappy/sched.py +++ b/trappy/sched.py @@ -104,9 +104,10 @@ class SchedSwitch(Base): """Parse sched_switch""" unique_word = "sched_switch:" + parse_raw = True def __init__(self): - super(SchedSwitch, self).__init__(parse_raw=True) + super(SchedSwitch, self).__init__(parse_raw=self.parse_raw) def create_dataframe(self): self.data_array = [line.replace(" ==> ", " ", 1) |