Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable switches of instrumented functions/libraries #6

Open
mofeing opened this issue Jan 24, 2023 · 2 comments
Open

Configurable switches of instrumented functions/libraries #6

mofeing opened this issue Jan 24, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mofeing
Copy link
Member

mofeing commented Jan 24, 2023

Opted-in instrumented functions could be enabled by sections or libraries (e.g. instrument only the given functions or libraries).

I am thinking on using Preferences.jl for this.

@mofeing mofeing added enhancement New feature or request good first issue Good for newcomers labels Jan 24, 2023
@clasqui
Copy link
Contributor

clasqui commented Feb 13, 2023

This will be very useful at initialization time, to register events, and setting up extrae, depending on the instrumented libraries. See for example

Extrae.jl/src/API.jl

Lines 32 to 38 in 63f845c

## TODO: This setup should depend on isntrumentation options.
## For example, if isntrumenting Distributed, here we setup the
## Distributed functions to identify resources
FFI.Extrae_set_numtasks_function(dist_numtasks)
FFI.Extrae_set_taskid_function(dist_taskid)
#register(DistributedEvent, "Distributed runtime call")
#register(DistributedUsefulWorkEvent, "Workers workload execution")

@mofeing
Copy link
Member Author

mofeing commented Feb 13, 2023

Definitely. This must be done on initialization.

What I have in my mind is that you could save for a project a profiling configuration using the Parameters.jl library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants