Microsoft SDK for Java

IJavaEventMonitor::
ExecuteByteCode

The ExecuteByteCode method of the IJavaEventMonitor interface is called by the Microsoft VM to notify the profiler when the execution of a Java bytecode instruction is about to occur. The Microsoft VM passes in a MethodID for the method that is executing, a pointer to the bytecode instructions for this method, and an offset from the start of the method to the bytecode instruction that is about to be executed.

Syntax

HRESULT ExecuteByteCode(MethodID method_id, BYTE_CODE *pbyte_code, DWORD byte_code_offset);

Parameters

[in] method_id The MethodID of the method that is executing.
[in] *pbyte_code A pointer to the bytecode instructions for this method.
[in] byte_code_offset An offset to the bytecode from the start of the method for the instruction that is about to be executed.

Remarks

The profiler can call the MethodInformation method implemented by the Microsoft VM to retrieve information about this MethodID. In particular, MethodInformation will return the execution model for this method (interpreted, fast-interpreted, JIT-compiled, native Win32, or COM).

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