Skip to content

Commit

Permalink
Separate Sampling Thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Solomon Bekele committed Nov 1, 2024
1 parent 5426406 commit 993f300
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions ze/gen_ze.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def gen_struct_printer(namespace, types)
if c.init?
puts <<EOF
_init_tracer();
_init_sampling();
EOF
end
common_block.call(c, provider, types)
Expand Down
5 changes: 1 addition & 4 deletions ze/tracer_ze_helpers.include.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,12 +849,9 @@ static void _load_tracer(void) {
if (s)
_do_paranoid_memory_location = 1;

s = getenv("LTTNG_UST_SAMPLING_ENERGY");
if (s)
initialize_sampling();


_do_cleanup = 1;
cleanup_sampling();

#ifndef THAPI_USE_DESTRUCTORS
atexit(_lib_cleanup);
Expand Down

0 comments on commit 993f300

Please sign in to comment.