18 #ifndef INTEL_JIT_EVENTS_WRAPPER_H 19 #define INTEL_JIT_EVENTS_WRAPPER_H 31 typedef void (*FinalizeThreadPtr)(void);
32 typedef void (*FinalizeProcessPtr)(void);
33 typedef unsigned int (*GetNewMethodIDPtr)(void);
35 NotifyEventPtr NotifyEventFunc;
36 RegisterCallbackExPtr RegisterCallbackExFunc;
37 IsProfilingActivePtr IsProfilingActiveFunc;
38 GetNewMethodIDPtr GetNewMethodIDFunc;
53 RegisterCallbackExPtr RegisterCallbackExImpl,
54 IsProfilingActivePtr IsProfilingActiveImpl,
55 FinalizeThreadPtr FinalizeThreadImpl,
56 FinalizeProcessPtr FinalizeProcessImpl,
57 GetNewMethodIDPtr GetNewMethodIDImpl)
58 : NotifyEventFunc(NotifyEventImpl),
59 RegisterCallbackExFunc(RegisterCallbackExImpl),
60 IsProfilingActiveFunc(IsProfilingActiveImpl),
61 GetNewMethodIDFunc(GetNewMethodIDImpl) {
69 return NotifyEventFunc(EventType, EventSpecificData);
75 if (RegisterCallbackExFunc)
76 RegisterCallbackExFunc(UserData, NewModeCallBackFuncEx);
81 if (!IsProfilingActiveFunc)
83 return IsProfilingActiveFunc();
88 if (!GetNewMethodIDFunc)
90 return GetNewMethodIDFunc();
96 #endif //INTEL_JIT_EVENTS_WRAPPER_H
This class represents lattice values for constants.
iJIT_IsProfilingActiveFlags iJIT_IsProfilingActive(void)
enum iJIT_jvm_event iJIT_JVM_EVENT
void(* iJIT_ModeChangedEx)(void *UserData, iJIT_ModeFlags Flags)
void iJIT_RegisterCallbackEx(void *UserData, iJIT_ModeChangedEx NewModeCallBackFuncEx)
IntelJITEventsWrapper(NotifyEventPtr NotifyEventImpl, RegisterCallbackExPtr RegisterCallbackExImpl, IsProfilingActivePtr IsProfilingActiveImpl, FinalizeThreadPtr FinalizeThreadImpl, FinalizeProcessPtr FinalizeProcessImpl, GetNewMethodIDPtr GetNewMethodIDImpl)
bool isAmplifierRunning()
int iJIT_NotifyEvent(iJIT_JVM_EVENT EventType, void *EventSpecificData)
unsigned int iJIT_GetNewMethodID(void)
enum _iJIT_IsProfilingActiveFlags iJIT_IsProfilingActiveFlags