Microsoft SDK for Java

Implementing Event Monitor Information Interfaces

A profiler must call specific methods of the event monitor information interfaces to use the other optional interfaces.

The event monitor information interfaces implemented by the Microsoft VM derive from IJavaEventMonitorIDInfo. IJavaEventMonitorIDInfo enables the profiler to communicate with the Microsoft VM to control event monitoring and information requests. IJavaEventMonitorIDInfo2 and IJavaEventMonitorIDInfo3 add several new methods.

A profiler can call QueryInterface on the IJavaEventMonitorIDInfo interface object passed to its Initialize method to determine if the Microsoft VM supports the IJavaEventMonitorIDInfo2 or IJavaEventMonitorIDInfo3 interfaces.

IID_IJavaEventMonitorIDInfo, IID_IJavaEventMonitorIDInfo2, IID_IJavaEventMonitorIDInfo3, and IIDs for all the other profiler interfaces are defined in the Jevmon.h file that is installed in the \Include directory of the Microsoft SDK for Java. Jevmon.h also contains definitions of the profiler interfaces.

This section contains the following topics:

Collecting Sampling Data discusses data sampling as a way to profile a Java application or applet.

Controlling Method Call Events shows how to control whether method notifications are received for all method calls or only specific ones.

For specific event monitor interfaces and their methods, see the Event Monitor Information Profiler Interfaces Reference.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.