I have a program that launches a child process where the code I want to profile is running.
While I can run the Debug> Performance Profiler > CPU Usage on the parent process, I can’t seem to see any of the child process events. Is this possible? Has anyone attempted this before?
Here is an example of how I’m launching the child process from the parent.
using System.Diagnostics;
namespace Parent
{
internal class Program
{
static void Main(string[] args)
{
var proc = Process.Start(""C:\Users\user\source\repos\ProfileChild\Child\bin\Debug\net8.0\Child.exe"");
if (proc != null)
proc.WaitForExit();
}
}
}
New contributor
Russel85 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2