Wrap lttng init and fini methods
This commit is contained in:
parent
f5e35d347d
commit
5ecd96ab5c
1 changed files with 2 additions and 4 deletions
|
@ -43,14 +43,12 @@ class Trace(Action):
|
|||
|
||||
def _setup(self):
|
||||
print('setting up tracing!')
|
||||
lttng.lttng_setup(
|
||||
lttng.lttng_init(
|
||||
self.__session_name,
|
||||
self.__path,
|
||||
ros_events=self.__events_ust,
|
||||
kernel_events=self.__events_kernel)
|
||||
lttng.lttng_start(self.__session_name)
|
||||
|
||||
def _destroy(self, event: Event, context: LaunchContext):
|
||||
print('destroying tracing session!')
|
||||
lttng.lttng_stop(self.__session_name)
|
||||
lttng.lttng_destroy(self.__session_name)
|
||||
lttng.lttng_fini(self.__session_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue