Monitoring Child Processes

Related Topics

To monitor a child process, you must first instrument the child executable. To do that, instrument the child executable separately by typing the following at the command line:

coverage /Run=no /Replace=yes child.exe

PureCoverage instruments the executable, renames the original file to Child.exe.original, and names the instrumented version Child.exe. Now, when the parent process starts Child.exe with CreateProcess, it actually starts the instrumented executable. When you instrument and run Parent.exe, it brings up PureCoverage so you can see data for both the parent and child process displayed in separate sets of data coverage windows.

Note:

§      If you are using Microsoft Windows 2000 or higher, the Windows File Protection feature (WFP) may prevent certain types of files from being replaced. For a workaround to this problem, click images\shortcut.gif.

(C) Copyright IBM Corporation 1993, 2010.