aboutsummaryrefslogtreecommitdiff
path: root/trappy/systrace.py
AgeCommit message (Collapse)Author
2017-06-02trace: Add support for skipping build of dataframesJoel Fernandes
For event callback driven scripts, its useful to save time to not build data frames that aren't going to be used anyway, add a parameter to skip building of data frames. This saves ~30% of the time an event callback based script takes. Signed-off-by: Joel Fernandes <joelaf@google.com>
2017-06-02trappy: Add support for ftrace event callbacksJoel Fernandes
Event callback are called per-event depending on the trace class, the callback is passed the event's timestamp and a dict of all parsed fields. Signed-off-by: Joel Fernandes <joelaf@google.com>
2017-01-04Update ARM Ltd. copyright to 2017Brendan Jackman
2016-06-20systrace: support legacy systrace formatLeo Yan
Old systrace html files don't use "<!-- BEGIN TRACE -->" to indicate the beginning of the trace beginning or '<script class="trace-data"' for the raw trace data. This patch tries adds a compatible string for the old systrace format preserving the support for the new systrace format. It adds "<title>Android System Trace</title>" and " var linuxPerfData" to indicate trace start and trace data start. Signed-off-by: Leo Yan <leo.yan@linaro.org>
2016-03-24systrace: identify CPUs count from sched_switchPatrick Bellasi
SysTrace does not report the same medatata generated by trace-cmd report. The "_cpus" attribute is required by plot_trace to properly dimension the plot. This patch ensures that this attribute is available by estimating the number of CPUs from the events available in the trace. The sched_switch event is always enabled, thus it should be good enough to calculate the number of cpus. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
2016-03-24systrace: add a class to parse trace coming from SysTraceJavi Merino
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.