How do I run a Visual Basic p-code system service under Quantify?

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

1.    Add PURE_MONITOR_ENABLE=Quantify to your system environment variable. For profiling Visual Basic 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.    Double-click the Services icon in the Control Panel, select the service you want, and then click Startup.

5.    In the Service dialog box, select Allow Service to Interact with Desktop. (This way, Quantify is visible while you run the service.)

6.    Select Manual, and then click OK.

7.    In the Services dialog box, click Start. This launches the service application, which launches Quantify, if needed.

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