Use enter key to stop tracing instead of sleep()

This commit is contained in:
Christophe Bedard 2019-06-06 09:23:48 +02:00
parent 93d062d2c4
commit 182fc771ee

View file

@ -19,7 +19,7 @@ def main(argv=sys.argv):
print('tracing session started') print('tracing session started')
# TODO integrate this with launch + ROS shutdown # TODO integrate this with launch + ROS shutdown
time.sleep(5) input('press enter to stop...')
print('stopping & destroying tracing session') print('stopping & destroying tracing session')
lttng_stop(session_name) lttng_stop(session_name)