Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
How to: Specify Pre-Instrument Events

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

  1. In Performance Explorer, select the Performance Session and then right-click and select Properties.

    The Property Pages dialog box is displayed.

  2. In the Property Pages, click the Instrumentation properties.

  3. 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.

  4. Click OK.

    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.

See Also

Community Additions

© 2015 Microsoft