From f45c3e543d0c2432f43bc6561ebb22674ef4c699 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 6 Jun 2019 09:29:38 +0200 Subject: [PATCH] Add user input before lttng_start --- tracetools_trace/trace.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tracetools_trace/trace.py b/tracetools_trace/trace.py index 794e8fe..57f8204 100644 --- a/tracetools_trace/trace.py +++ b/tracetools_trace/trace.py @@ -26,8 +26,10 @@ def main(): path = base_path + '/' + session_name lttng_setup(session_name, path) + print(f'writting tracing session to: {path}') + + input('press enter to start...') lttng_start(session_name) - print(f'tracing session started: {path}') # TODO integrate this with launch + ROS shutdown input('press enter to stop...')