COR_PRF_CODEGEN_FLAGS Enumeration

Defines the code generation flags that can be set with the ICorProfilerFunctionControl::SetCodegenFlags method.

Syntax

typedef enum {  
    COR_PRF_CODEGEN_DISABLE_INLINING =          0x0001,  
    COR_PRF_CODEGEN_DISABLE_ALL_OPTIMIZATIONS = 0x0002,  
} COR_PRF_CODEGEN_FLAGS;  

Members

Member Description
COR_PRF_CODEGEN_DISABLE_INLINING No functions will be inlined into this function’s body. However, the function itself may be inlined into its callers.
COR_PRF_CODEGEN_DISABLE_ALL_OPTIMIZATIONS All optimizations will be disabled for this function’s body. However, the function itself may still be inlined into its callers.

Remarks

The COR_PRF_CODEGEN_FLAGS enumeration is used by the ICorProfilerFunctionControl::SetCodegenFlags method to enable the profiler to control the code generation for the JIT-recompiled function.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5

See also