The Resource profiler tracks whether your application releases all the allocated resources before it terminates. Also, it tracks errors that occur when calling Windows API functions that deal with resources. It collects a stack of function calls that were executed when a specific resource was allocated or when an error occurred. Even though some resources are released automatically when the application terminates, the profiler is useful for performing analysis during the application execution and for spotting excessive and unnecessary amounts of “live” resource handles. Using the profiler you can trace how your application uses resources, whether it releases them as expected, etc. This tutorial demonstrates how you can use the Resource profiler to analyze your applications.