aboutsummaryrefslogtreecommitdiff
path: root/trappy/ftrace.py
diff options
context:
space:
mode:
Diffstat (limited to 'trappy/ftrace.py')
-rw-r--r--trappy/ftrace.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/trappy/ftrace.py b/trappy/ftrace.py
index 2df91b4..0ef86af 100644
--- a/trappy/ftrace.py
+++ b/trappy/ftrace.py
@@ -58,8 +58,8 @@ subclassed by FTrace (for parsing FTrace coming from trace-cmd) and SysTrace."""
def __init__(self, name="", normalize_time=True, scope="all",
events=[], event_callbacks={}, window=(0, None),
- abs_window=(0, None)):
- super(GenericFTrace, self).__init__(name)
+ abs_window=(0, None), build_df=True):
+ super(GenericFTrace, self).__init__(name, build_df)
if not hasattr(self, "needs_raw_parsing"):
self.needs_raw_parsing = False
@@ -494,14 +494,15 @@ class FTrace(GenericFTrace):
def __init__(self, path=".", name="", normalize_time=True, scope="all",
events=[], event_callbacks={}, window=(0, None),
- abs_window=(0, None)):
+ abs_window=(0, None), build_df=True):
self.trace_path, self.trace_path_raw = self.__process_path(path)
self.needs_raw_parsing = True
self.__populate_metadata()
super(FTrace, self).__init__(name, normalize_time, scope, events,
- event_callbacks, window, abs_window)
+ event_callbacks, window, abs_window,
+ build_df)
def __process_path(self, basepath):
"""Process the path and return the path to the trace text file"""