How can I use System.Diagnostics.PerformanceCounter to track the memory and CPU usage for a process?
I think you want Windows Management Instrumentation.
EDIT: See here:
Measure a process CPU and RAM usage
How to get the CPU Usage in C#?