aboutsummaryrefslogtreecommitdiff
path: root/trappy/bare_trace.py
diff options
context:
space:
mode:
Diffstat (limited to 'trappy/bare_trace.py')
-rw-r--r--trappy/bare_trace.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/trappy/bare_trace.py b/trappy/bare_trace.py
index f3fbd58..9787f04 100644
--- a/trappy/bare_trace.py
+++ b/trappy/bare_trace.py
@@ -27,12 +27,13 @@ class BareTrace(object):
"""
- def __init__(self, name=""):
+ def __init__(self, name="", build_df=True):
self.name = name
self.normalized_time = False
self.class_definitions = {}
self.trace_classes = []
self.basetime = 0
+ self.build_df = build_df
def get_duration(self):
"""Returns the largest time value of all classes,
@@ -133,6 +134,8 @@ class BareTrace(object):
setattr(self, name, event)
def finalize_objects(self):
+ if not self.build_df:
+ return
for trace_class in self.trace_classes:
trace_class.create_dataframe()
trace_class.finalize_object()