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

Start/Stop hook in apps #6

Open
svalat opened this issue Mar 23, 2018 · 1 comment
Open

Start/Stop hook in apps #6

svalat opened this issue Mar 23, 2018 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@svalat
Copy link
Member

svalat commented Mar 23, 2018

Add hook support to start and stop instrumentation to track only a sub-part of the application.

@svalat svalat added the enhancement New feature or request label Mar 23, 2018
@svalat svalat added this to the Version 1.1.0 milestone Mar 23, 2018
@svalat svalat added the good first issue Good for newcomers label Oct 7, 2018
@svalat
Copy link
Member Author

svalat commented Oct 7, 2018

The patch should be quite easy.

It requires to :

  • capture call to two functions to start/stop instrumentation which might be named numaprof_instr_start/numaprof_instr_stop. Can look on malloc/free/realloc instrumentation.
  • Add an option to start numaprof in stop mode when running with this (or automatically enable if found usage of the two previous symbols)
  • Do not instrument memory accesses in ThreadTracker if in stop mode.

To be seen if we keep analysis of first touch of not (if we place the if/return at beginning of function of if/set skip.

Work is mainly here :

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

1 participant