Game Development Reference
In-Depth Information
Figure 34.5
Main dialog of CLR Profiler.
Start by targeting an application to profile by using the main menu and selecting
File>Profile Application… as shown in Figure 34.6. After targeting and applica-
tion, you can click the Start Application… button to begin profiling.
Figure 34.6
Menu to specify an application for profiling.
You now begin using the functionality that you want to profile in your application.
The profile reports are accessible when the application is running or after it has
been closed down, so you can either profile as you use the application or view the
reports after the application has closed.
There is a wide variety of reports that you can view, such as the Histogram by Size
for Allocated Objects shown in Figure 34.7. This report is useful in determining
how much data was allocated, and separated by object type.
Another way to analyze your allocation profile is by viewing the memory manage-
ment time line that depicts usage patterns for object types in your application as
well as generation statistics for the garbage collector. This report is shown in
Figure 34.8.
Another useful report is the allocation graph, which allows you to walk through
the allocation tree for any objects in the application. This report is shown in Figure
Search Nedrilad ::

Custom Search