Gather coverage across processes

How can I gather coverage across multiple processes of the same program? Let us assume we have a program with a parent and a child process, how can I get which code is executed from the parent and the one from the child?
Maybe by using the LLVM_PROFILE_FILE=code-%p.profraw or something like that?