bloomberg / memray

Memray is a memory profiler for Python
https://bloomberg.github.io/memray/
Apache License 2.0
13.36k stars 397 forks source link

Support --follow-fork #448

Closed slannez-fico closed 1 year ago

slannez-fico commented 1 year ago

Is there an existing proposal for this?

Is your feature request related to a problem?

I have an issue when I want to profile memory consumption over programs based on multiprocessing.

Describe the solution you'd like

I would love if the plugin could accept a "--follow-fork" argument like "memray run"

Alternatives you considered

Using "with memray.Tracker(file_name=..., follow_fork=True)" in the instrumented app, but that kind of defeat the purpose of using a general purpose pytest plugin...

pablogsal commented 1 year ago

Duplicate of https://github.com/bloomberg/pytest-memray/issues/89