Skip to content

Allow disabling automatic heap dumps by default #2971

Open

Description

@bealpha494-lab

Our QA team suffers from LeakCanary automatically triggering heap dumps during testing, while developers still want automatic dumps during development.

Could you provide a simple configuration to make automatic heap dumping disabled by default, with developers able to explicitly enable it when needed?

Ideally:

LeakCanary.config = LeakCanary.config.copy(
    dumpHeap = false
)

The goal is no automatic heap dumps by default, without disabling LeakCanary’s leak detection/notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions