Skip to content

Commit

Permalink
allow arbitrary root labels in time tree tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
malb committed Feb 16, 2018
1 parent 8880e97 commit deadf0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fpylll/tools/bkz_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ class TimeTreeTracer(Tracer):

entries = (("cputime", time.clock), ("walltime", time.time))

def __init__(self, instance, verbosity=False):
def __init__(self, instance, root_label="root", verbosity=False):
"""
Create a new tracer instance.
Expand All @@ -641,7 +641,7 @@ def __init__(self, instance, verbosity=False):
"""
Tracer.__init__(self, instance, verbosity)
self.trace = Node("root")
self.trace = Node(root_label)
self.current = self.trace

def enter(self, label, **kwds):
Expand Down

0 comments on commit deadf0f

Please sign in to comment.