aboutsummaryrefslogtreecommitdiff
path: root/trappy
diff options
context:
space:
mode:
Diffstat (limited to 'trappy')
-rw-r--r--trappy/systrace.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/trappy/systrace.py b/trappy/systrace.py
index 5c99ff7..9800ade 100644
--- a/trappy/systrace.py
+++ b/trappy/systrace.py
@@ -30,10 +30,12 @@ the trace
def __call__(self, line):
if self.before_begin_trace:
- if line.startswith("<!-- BEGIN TRACE -->"):
+ if line.startswith("<!-- BEGIN TRACE -->") or \
+ line.startswith("<title>Android System Trace</title>"):
self.before_begin_trace = False
elif self.before_script_trace_data:
- if line.startswith(' <script class="trace-data"'):
+ if line.startswith(' <script class="trace-data"') or \
+ line.startswith(" var linuxPerfData"):
self.before_script_trace_data = False
elif not line.startswith("#"):
self.before_actual_trace = False