Find CPU Usage and Netwrok Usage of a process RRS feed

  • Question

  • Hi Members,


    I need to find out the CPU Usage and Netwrok Usage of a process. Like if an application is running on my machine how i can find its CPU Usage and Network Usage using c#.



    Friday, December 21, 2012 9:36 AM


  • Hi pkjse,

      Welcome to MSDN Forum Support.

      Here is a wonderful sample published by All-In-Onecode-Framework named Track the system CPU usage (CSCpuUsage).

      This sample demonstrates how to use PerformanceCounter to get the CPU Usage with
    following features
    1. The Total Processor Time.
    2. The Processor time of a specific process.
    3. Draw the CPU Usage History like Task Manager.


      Jason Wang

    Jason Wang [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Jason Dot Wang Monday, December 31, 2012 5:25 AM
    Monday, December 24, 2012 8:37 AM

All replies