Skip to content

Commit

Permalink
split session and sessiond (#265)
Browse files Browse the repository at this point in the history
* split session and sessiond

* better help

* Update xprof/xprof.rb.in

Co-authored-by: Brice Videau <[email protected]>

---------

Co-authored-by: Thomas Applencourt <[email protected]>
Co-authored-by: Brice Videau <[email protected]>
  • Loading branch information
3 people authored Jul 18, 2024
1 parent 7b9b7e5 commit c1221cc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions xprof/xprof.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,11 @@ def setup_lttng(backends)
exec("lttng start #{lttng_session_uuid}")
end

def teardown_lttng
def lttng_teardown_session
exec("lttng destroy #{lttng_session_uuid}")
end

def lttng_kill_sessiond
# Need to kill the sessiond Daemon. It's safe because each job has their own
#
# In theory, opening the lttng-sessiond.pid file is racy.
Expand Down Expand Up @@ -643,7 +646,12 @@ def trace_and_on_node_processing(usr_argv)
syncd.local_barrier('waiting_for_application_ending')
return unless mpi_local_master?

teardown_lttng
# Stop Lttng session
lttng_teardown_session
# Lttng session is finished,
# we can kill the session daemon
lttng_kill_sessiond

# Preprocess trace
on_node_processing_babeltrace(backends)
on_node_processing_sync_and_rename(syncd)
Expand Down

0 comments on commit c1221cc

Please sign in to comment.