Generate pstree-like output from strace output