Skip to content

Commit

Permalink
Enable sampling energy with --sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerilk committed Sep 8, 2023
1 parent 8e2b734 commit ea856a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xprof/xprof.sh.erb.in
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,12 @@ setup_lttng() {
#Activate sampling on non-blocking stream
if [ $sample == true ]; then
export LTTNG_UST_SAMPLING=1
export LTTNG_UST_SAMPLING_ENERGY=1
lttngq enable-channel --userspace nonblocking-channel
lttngq enable-event --channel=nonblocking-channel --userspace lttng_ust_sampling:*
<% if languages.include?("ze") %>
lttngq enable-event --channel=nonblocking-channel --userspace lttng_ust_ze_sampling:*
<% end %>
lttngq add-context --userspace --channel=nonblocking-channel -t vpid -t vtid
fi

Expand Down

0 comments on commit ea856a9

Please sign in to comment.