- In the Options window, open the MyProfile profile and click under the list of subsystems.
- In the opened Subsystem definition window, specify the subsystem name – Chart visualization and select the subsystem color.
Now, we need to add rules for our subsystem. All calls that match the rules will be calculated within this subsystem.
- .NET uses the System.Windows.Forms.DataVisualization.Charting namespace for providing methods and properties for the Chart Windows forms control. Let’s add the rule for this namespace.
To do this, click Add and specify System.Windows.Forms.DataVisualization.Charting in the ...and Fully Qualified Name prefix column.
- Our profile will look like follows.
Once we apply the profile to the snapshot, our profiling results will look the following way.
The Chart visualization subsystem takes 322 ms. In the next step we'll try to find out the cause of such time and the way we can decrease it.