|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.|
How to: Specify Post-Instrument Events
Post-instrument events specify actions that occur after a binary is instrumented. Commands that can be issued from the command line prompt can be specified as a post-instrument event. For example, you can specify commands that, as part of the post-instrument event, automate the resigning of an assembly with a strong name key.
To specify post-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 Post-Instrument events, type a command 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 executing without removing it, select the Exclude from instrumentation check box.