Skip to content
Snippets Groups Projects
Commit 5a10c5b2 authored by Daniel Brown's avatar Daniel Brown
Browse files

tracing doesn't require anymore than maxtem 0 so use that for tracing and then...

tracing doesn't require anymore than maxtem 0 so use that for tracing and then return to previous value.
parent 3afbe7ae
Branches
Tags
No related merge requests found
......@@ -4,12 +4,12 @@ cmd = """
l l1 1 0 n1
s s1 1 n1 n2
m m1 0.99 0.01 0 n2 n3
s s2 100 n3 n4
s s2 999 n3 n4
m m2 0.99 0.01 0 n4 n5
pd circ n3
noxaxis
maxtem 2
maxtem 0
attr m1 Rc 0
attr m2 Rc 1000
......
......@@ -1193,10 +1193,17 @@ class kat(object):
trace_info = Manager().dict()
prev = self.maxtem
self.maxtem = 0
try:
p = self.getProcess(f__lkat_trace_callback, trace_info=trace_info)
p.start()
p.join()
finally:
self.maxtem = prev
# return a local copy of the trace information dictionary
return dict(trace_info)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment