How do I profile Visual Basic p-code running under MTS?

For a system service such as MTS, you must manually enable the monitoring.

1.    Add PURE_MONITOR_ENABLE=Quantify to your system environment variableFor profiling Visual Basic 6.0 p-code, also add MSVBA_EVENT_MONITORS=1 and VBAEV_QUANTIFY=1.

2.    Add the Quantify program directory to your system PATH environment variable.

3.    Reboot your machine so the system uses the new values.

4.    Start the Microsoft Transaction Server (MTS).

5.    Arrange to have the MTS launch your Visual Basic p-code program.

6.    When you have finished profiling, remove the environment variables you added in Step 1, and reset the registry key in Step 4 to 0, if you changed it.

(C) Copyright IBM Corporation 1993, 2009.