IBM User Guide for Java V7 on Windows > Troubleshooting and support > Using diagnostic tools > Using the JVMTI > IBM JVMTI extensions - API reference
Setting JVM trace options
You can set trace options for the JVM using the same syntax as the -Xtrace command-line option.
The SetVmTrace() API has the JVMTI Extension Function identifier com.ibm.SetVmTrace. The identifier is declared as macro COM_IBM_SET_VM_TRACE in ibmjvmti.h.
To set a JVM trace option, use:
jvmtiError SetVmTrace(jvmtiEnv* jvmti_env, char* option)The trace option is passed in as an ASCII character string. Use the same syntax as the -Xtrace command-line option, with the initial -Xtrace: omitted. See Detailed descriptions of trace options.
- Parameters:
- jvmti_env: JVMTI environment pointer.
- option: Enter the JVM trace option string.
- Returns:
- JVMTI_ERROR_NONE: Success.
- JVMTI_ERROR_NULL_POINTER: The option parameter is null.
- JVMTI_ERROR_OUT_OF_MEMORY: There is insufficient system memory to process the request.
- JVMTI_ERROR_INVALID_ENVIRONMENT: The jvmti_env parameter is invalid.
- JVMTI_ERROR_WRONG_PHASE: The extension has been called outside the JVMTI live phase.
- JVMTI_ERROR_ILLEGAL_ARGUMENT: The option parameter contains an invalid -Xtrace string.
Parent: IBM JVMTI extensions - API reference
Error 404 - Not Found Error 404 - Not Found
The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.