Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
|
|
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>
|
|
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>
|
|
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.
|