Skip to content

Suppressing functions #623

Open
Open
@ZeroIntensity

Description

@ZeroIntensity

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions