17 #ifndef INTEL_JIT_EVENTS_WRAPPER_H 18 #define INTEL_JIT_EVENTS_WRAPPER_H 30 typedef void (*FinalizeThreadPtr)(void);
31 typedef void (*FinalizeProcessPtr)(void);
32 typedef unsigned int (*GetNewMethodIDPtr)(void);
34 NotifyEventPtr NotifyEventFunc;
35 RegisterCallbackExPtr RegisterCallbackExFunc;
36 IsProfilingActivePtr IsProfilingActiveFunc;
37 GetNewMethodIDPtr GetNewMethodIDFunc;
52 RegisterCallbackExPtr RegisterCallbackExImpl,
53 IsProfilingActivePtr IsProfilingActiveImpl,
54 FinalizeThreadPtr FinalizeThreadImpl,
55 FinalizeProcessPtr FinalizeProcessImpl,
56 GetNewMethodIDPtr GetNewMethodIDImpl)
57 : NotifyEventFunc(NotifyEventImpl),
58 RegisterCallbackExFunc(RegisterCallbackExImpl),
59 IsProfilingActiveFunc(IsProfilingActiveImpl),
60 GetNewMethodIDFunc(GetNewMethodIDImpl) {
68 return NotifyEventFunc(EventType, EventSpecificData);
74 if (RegisterCallbackExFunc)
75 RegisterCallbackExFunc(UserData, NewModeCallBackFuncEx);
80 if (!IsProfilingActiveFunc)
82 return IsProfilingActiveFunc();
87 if (!GetNewMethodIDFunc)
89 return GetNewMethodIDFunc();
95 #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