This shows you the differences between two versions of the page.
ep:labs:09:contents:tasks:ex2 [2021/12/04 18:22] andrei.mirciu [02. [40p] CPU Monitoring] |
ep:labs:09:contents:tasks:ex2 [2021/12/04 20:53] (current) andrei.mirciu [02. [40p] CPU Monitoring] |
||
---|---|---|---|
Line 2: | Line 2: | ||
<note warning> | <note warning> | ||
- | For this task we will use //**EvenimenteProcMon.sln**// inside the //**Task-02**// folder. | + | For this task we will use //**CPUUsage.sln**// inside the //**CPUUsage**// folder and //**EvenimenteProcMon.sln**// inside the //**Task-02**// folder. |
</note> | </note> | ||
- | We want to analyze //EvenimenteProcMon// program, which has the purpose of integrating your messages with Process Monitor, so these can be viewed as the process unfolds. It is necessary to understand any code, not perfectly, but at least to get the big picture of what is going on. | + | :!: First of all, monitor the CPU usage of the //CPUUsage// process, using both **Task Manager** and **Windows Performance Recorder**. |
+ | |||
+ | Going further, we want to analyze //EvenimenteProcMon// program, which has the purpose of integrating your messages with Process Monitor, so these can be viewed as the process unfolds. It is necessary to understand any code, not perfectly, but at least to get the big picture of what is going on. | ||
A ProcessMonitor class with 5 functions was created: | A ProcessMonitor class with 5 functions was created: | ||
Line 29: | Line 31: | ||
</code> | </code> | ||
- | :!: Monitor the CPU usage of the //EvenimenteProcMon// process, using both Task Manager and Windows Performance Recorder. | + | :!: Start Process Monitor and change the filter to **ProcessName contains EvenimenteProcMon**. Select the profiling button as shown below: |
- | :!: After that, start Process Monitor and change the filter to **ProcessName contains EvenimenteProcMon**. Select the profiling button as shown below: | + | |
{{ :ep:laboratoare:ep5_butonprofiling.png?400 |}} | {{ :ep:laboratoare:ep5_butonprofiling.png?400 |}} |