aboutsummaryrefslogtreecommitdiff
path: root/tests/trace_systrace.html
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2016-03-22 11:34:30 +0000
committerJavi Merino <javi.merino@arm.com>2016-03-24 11:43:41 +0000
commit46458d66cd5118b6d9cac7cb455f8dae1286b9b2 (patch)
treede18265781764b41692e763d049084d679abf936 /tests/trace_systrace.html
parentce68bd04807c4833ebf27db3602c735633646b5b (diff)
downloadtrappy-46458d66cd5118b6d9cac7cb455f8dae1286b9b2.tar.gz
systrace: add a class to parse trace coming from SysTrace
The SysTrace class has the same interface as FTrace. SysTrace doesn't support raw traces. The only special thing that we have to do is skip all the HTML in the file and parse the actual trace.
Diffstat (limited to 'tests/trace_systrace.html')
-rw-r--r--tests/trace_systrace.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/trace_systrace.html b/tests/trace_systrace.html
new file mode 100644
index 0000000..d35e904
--- /dev/null
+++ b/tests/trace_systrace.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+#
+# Remove HTML content...
+#
+ overlay.textContent = tr.b.normalizeException(err).message;
+ overlay.title = 'Import error';
+ overlay.visible = true;
+ });
+ }
+ window.addEventListener('load', onLoad);
+ </script>
+<!-- BEGIN TRACE -->
+ <script class="trace-data" type="application/text">
+# tracer: nop
+#
+# entries-in-buffer/entries-written: 71906/71906 #P:6
+# enabled events: sched:sched_switch sched:sched_wakeup
+#
+# _-----=> irqs-off
+# / _----=> need-resched
+# | / _---=> hardirq/softirq
+# || / _--=> preempt-depth
+# ||| / delay
+# TASK-PID TGID CPU# |||| TIMESTAMP FUNCTION
+# | | | | |||| | |
+RenderThread-1143 ( 611) [004] ...1 514769.085985: tracing_mark_write: E
+com.android.systemui-611 ( 611) [001] d..5 514769.086090: sched_wakeup: comm=Binder_5 pid=679 prio=120 success=1 target_cpu=001 state=W
+atrace-15227 (15227) [000] ...1 514769.086243: tracing_mark_write: trace_event_clock_sync: realtime_ts=1448979311493
+Binder_4-280 ( 184) [000] d..5 514769.086330: sched_wakeup: comm=Binder_5 pid=1158 prio=120 success=1 target_cpu=002 state=W
+Binder_4-280 ( 184) [000] d..3 514769.086417: sched_wakeup: comm=Binder_5 pid=1158 prio=120 success=1 target_cpu=002 state=W|m
+Binder_4-280 ( 184) [000] d..4 514769.086473: sched_wakeup: comm=EventThread pid=238 prio=111 success=1 target_cpu=003 state=W
+ </script>
+<!-- END TRACE -->
+</body>
+</html>