Replies: 1 comment
-
We're working on adding a command to do this right now in #458, so keep an eye out for our next release.
In the meantime, calling If you can't use the TUI because you're in an headless environment with no terminal, you could re-attach and specify an invalid file path as the output file, something like |
Beta Was this translation helpful? Give feedback.
-
I used command
memray attach <pid> -o <output.bin>
to analyze the process's memory allocation.After gathering enough data, I would like to stop the attachment, because otherwise the output file would eventually consume all my disk space.
But I can't find a way to do this other than stopping the process, which I would rather avoid.
Deleting the output file doesn't work because the file handler is still occupied by the process and the disk won't be freed until the file is closed.
Beta Was this translation helpful? Give feedback.
All reactions