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
...@@ -4,12 +4,12 @@ cmd = """ ...@@ -4,12 +4,12 @@ cmd = """
l l1 1 0 n1 l l1 1 0 n1
s s1 1 n1 n2 s s1 1 n1 n2
m m1 0.99 0.01 0 n2 n3 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 m m2 0.99 0.01 0 n4 n5
pd circ n3 pd circ n3
noxaxis noxaxis
maxtem 2 maxtem 0
attr m1 Rc 0 attr m1 Rc 0
attr m2 Rc 1000 attr m2 Rc 1000
......
...@@ -1192,10 +1192,17 @@ class kat(object): ...@@ -1192,10 +1192,17 @@ class kat(object):
raise RuntimeError("Could not find shared library 'libkat', please install to a system location or copy to the same directory as this script") raise RuntimeError("Could not find shared library 'libkat', please install to a system location or copy to the same directory as this script")
trace_info = Manager().dict() trace_info = Manager().dict()
p = self.getProcess(f__lkat_trace_callback, trace_info=trace_info) prev = self.maxtem
p.start() self.maxtem = 0
p.join()
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 a local copy of the trace information dictionary
return dict(trace_info) return dict(trace_info)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment