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

Suppressing functions #623

Open
1 task done
ZeroIntensity opened this issue Jun 8, 2024 · 0 comments
Open
1 task done

Suppressing functions #623

ZeroIntensity opened this issue Jun 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ZeroIntensity
Copy link
Contributor

Is there an existing proposal for this?

  • I have searched the existing proposals

Is your feature request related to a problem?

Python comes with several built-in "memory leaks" (for example, re.compile, from your docs), making it difficult to write code that doesn't get marked by Memray as leaking memory in some way or another.

Describe the solution you'd like

Memray could support adding a suppressions file. This could be in an ini file (since that's in the standard library), or make its own format - similar to how Valgrind does it.

Alternatives you considered

I've considered modifying get_allocations to manually remove some functions from the report.

@ZeroIntensity ZeroIntensity added the enhancement New feature or request label Jun 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

1 participant