Skip to content

Commit

Permalink
Add registermethod
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Jul 1, 2024
1 parent 06dae83 commit fbce16a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ Turn on/off the instrumentation.
"""
instrumentation(state::Bool) = state ? restart() : shutdown()

function register(tcode, tdesc, vcodes, vdescs)
@assert length(vcodes) == length(vdescs)
return FFI.Extrae_define_event_type(tcode, tdesc, length(vcodes), vcodes, vdescs)
end

"""
emit()
Expand Down

0 comments on commit fbce16a

Please sign in to comment.