-
Notifications
You must be signed in to change notification settings - Fork 368
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
Ability to write to a pipe from memray.Tracker
#574
Comments
As things stand today, this isn't simple. Memray expects to be able to mmap the output file, and pipes cannot be mmapped. We do support binding to a TCP port, waiting for a client to connect, and then writing the captured data over that socket - https://bloomberg.github.io/memray/api.html#memray.SocketDestination That's intended for use by the |
After talking about it a bit, we decided we would address this in two separate ways:
Closing this in favor of the other two. |
Is there an existing proposal for this?
Is your feature request related to a problem?
I want to write to a fifo instead of a file but memray complains if the file I point it to already exists. The end problem I am trying to solve is that I want to stream the result to a distributed file system instead of place it on the disk.
Describe the solution you'd like
I'd like to write to a pre-existing fifo pipe.
Alternatives you considered
If memray could just give me the bytes in an iterator that would be fine too.
The text was updated successfully, but these errors were encountered: