Microsoft SDK for Java

Controlling Method Call Events

The profiler interfaces allow a profiler to control whether Java method call events (notifications) are received on a global basis (for all method calls) or only for specific methods. To control method call events for a specific method, the profiler must have set the bitmask for event type categories for which the Microsoft VM will send event notifications to include JVM_MONITOR_SPECIFIC_METHODS.

The EnableMethodCallEvents method can be used to query the current settings, enable method notification callbacks, or disable method notification callbacks (MethodEntry, MethodExit, or MethodExit2 calls) for a specific method. The profiler passes in a UniqueID of the method or class that it is concerned with, a JVM_ID_TYPE enumeration value that represents the type of the UniqueID, and a JVM_METHOD_CALL_EVENTS_DISPOSITION enumeration value that represents the disposition requested for the given UniqueID.

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