##// END OF EJS Templates
statprof: correctly always pass a str as the thread name...
Augie Fackler -
r43762:5c9daf7d default
parent child Browse files
Show More
@@ -352,7 +352,7 b" def start(mechanism=b'thread', track=b'c"
352 frame = inspect.currentframe()
352 frame = inspect.currentframe()
353 tid = [k for k, f in sys._current_frames().items() if f == frame][0]
353 tid = [k for k, f in sys._current_frames().items() if f == frame][0]
354 state.thread = threading.Thread(
354 state.thread = threading.Thread(
355 target=samplerthread, args=(tid,), name=b"samplerthread"
355 target=samplerthread, args=(tid,), name="samplerthread"
356 )
356 )
357 state.thread.start()
357 state.thread.start()
358
358
General Comments 0
You need to be logged in to leave comments. Login now