|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
How to: Specify Pre-Instrument Events
Pre-instrument events specify actions that occur before a binary is instrumented. Commands that can be issued from the command line can be specified as a pre-instrument event.
To specify pre-instrument event
In Performance Explorer, select the Performance Session and then right-click and select Properties.
The Property Pages dialog box is displayed.
In the Property Pages, click the Instrumentation properties.
Under Pre-Instrument events, type the command you would like to run before instrumentation starts in the Command line box.
Click (…) adjacent to the Command line box, and select the appropriate .exe, .cmd, or .bat file.
To disable the command from running without removing it, select the Exclude from instrumentation check box. To modify compiler or linker settings use the project property pages.