extrace traces all program executions occurring on a system and prints the process call hierarchy in a human-readable form.
While process tracing is exact, looking up all information is inherently sensitive to race conditions. In doubt, you can only trust the PID was written correctly.