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

Support --follow-fork #89

Open
luochen1990 opened this issue Jul 20, 2023 · 1 comment
Open

Support --follow-fork #89

luochen1990 opened this issue Jul 20, 2023 · 1 comment

Comments

@luochen1990
Copy link

Feature Request

Is your feature request related to a problem? Please describe.

I'm running a test case via a subprocess, and I find that memray provided a CLI argument for this case, but there is no corresponding argument for pytest-memray

Describe the solution you'd like

Hoping that there is also a CLI argument like --memray-follow-fork to do similar thing.

Describe alternatives you've considered

Maybe add a keyword argument to the mark limit_memory is also great.

@pytest.mark.limit_memory("60 KB", follow_fork = True)
@pablogsal
Copy link
Member

The problem with this option is that memray creates different result dumps for every forked process and expects the user to analyse every one separately. This feature will also require the plugin to change the reporting structure to report the allocations per process, which requires more work and design than just exposing the flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants