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

Filtering and exclusion by library or module #835

Open
mcarans opened this issue Jul 11, 2024 · 2 comments
Open

Filtering and exclusion by library or module #835

mcarans opened this issue Jul 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mcarans
Copy link

mcarans commented Jul 11, 2024

Is your feature request related to a problem? Please describe.
I want to be able to profile all but restrict which dependent libraries are profiled.

Describe the solution you'd like
There should be a way to exclude certain libraries or modules (not files because that is too granular).

Describe alternatives you've considered
I cannot think of an alternative that is feasible. Specifying every file I want to profile is not practical.

@emeryberger
Copy link
Member

Have you tried some combination of these? (From scalene --help)

  --profile-only PROFILE_ONLY
                        profile only code in filenames that contain the given strings, separated by commas (default: no 
restrictions)
  --profile-exclude PROFILE_EXCLUDE
                        do not profile code in filenames that contain the given strings, separated by commas (default: no 
restrictions)

For example, --profile-all --profile-exclude libname1,libname2

@mcarans
Copy link
Author

mcarans commented Jul 12, 2024

I missed --profile-exclude which is not listed in the README.md under the section entitled "Click to see all Scalene's options ": https://github.com/plasma-umass/scalene#scalene

That certainly helps. I could exclude threading which seemed to be dominating the results. I think it would still be useful to be able to specify what dependent libraries to include in or exclude from profiling.

@emeryberger emeryberger added the enhancement New feature or request label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants