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.
HRESULT ExecuteByteCode(MethodID method_id, BYTE_CODE *pbyte_code, DWORD byte_code_offset);
[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. |
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).