diff --git a/src/Extrae.jl b/src/Extrae.jl index c1a4949..bfffbd0 100644 --- a/src/Extrae.jl +++ b/src/Extrae.jl @@ -5,4 +5,12 @@ include("API.jl") export Event, typecode, valuecode, description export version, init, isinit, finish, flush, instrumentation, emit, register, previous_hwc_set, next_hwc_set, set_tracing_tasks, setoption, network_counters, network_routes, user_function +function __init__() + FFI.Extrae_init() + + get!(ENV, "EXTRAE_HOME", Extrae_jll.artifact_dir) + get!(ENV, "EXTRAE_DISABLE_OMP", true) + get!(ENV, "EXTRAE_DISABLE_PTHREAD", false) +end + end