Selecting Specific Classes for Instrumentation (Memory Profiling)

Related Topics

You can use selective instrumentation to have Purify instrument and collect memory profiling data for just those .NET managed classes that you specify.

To use selective instrumentation for memory profiling:

1.    Open the Class Instrumentation dialog box.

2.    In the Classes to Instrument group, select the type of instrumentation you want to perform:

§  select All Classes to specify classes to exclude from data collection. All other classes are included. The All Classes Pattern Tree will be displayed.

§  select Selected Classes to specify classes to include in data collection. All other classes are excluded. The Selected Classes Pattern Tree will be displayed.

3.    In the Pattern Tree, specify and select (enable) character string patterns that you want Purify to compare against fully qualified class names at runtime.

4.    Click OK. The current Pattern Tree is automatically saved in an .ini file. For details about .ini files and their locations, click images\shortcut.gif.

Notes:

§      Use the File menu to save (export) Pattern Trees to .ini files, or load (import) previously saved Pattern Trees.

§      You can use the /PurifyClassesExcludeMust and /PurifyClassesIncludeMust command line options in scripts and from the command line to selectively instrument .NET classes.

§      To use selective instrumentation patterns and settings that you saved from the Purify user interface, use the /ExeIniFileName command line option.

§      Purify can indicate whether objects were created by included or excluded classes. To do this, specify /MemprofTrackExcludedClassObjects in Additional options in the Files tab in the settings dialog boxes or from the command line. Objects created by excluded classes will have a root type of "excluded".

§      The availability of debug line data affects the level at which Purify can perform instrumentation.

(C) Copyright IBM Corporation 1992, 2010.