Skip to content

Can memray track subprocesses started by spawn()? #157

Answered by godlygeek
scse-l asked this question in Q&A
Discussion options

You must be logged in to vote

The spawn method forks a process off, and then executes the interpreter all over again in that forked process. The files get written because we successfully trace through the fork call, but they're nearly empty because soon after the fork the process image is replaced by an exec call.

So, you're definitely right that we can't trace into spawned worker processes like we do into forked ones.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@scse-l
Comment options

Answer selected by scse-l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants