60 #if ITT_PLATFORM==ITT_PLATFORM_WIN
62 #pragma optimize("", off)
72 static const char rcsid[] =
"\n@(#) $Revision: 234474 $\n";
74 #define DLL_ENVIRONMENT_VAR "VS_PROFILER"
76 #ifndef NEW_DLL_ENVIRONMENT_VAR
77 #if ITT_ARCH==ITT_ARCH_IA32
78 #define NEW_DLL_ENVIRONMENT_VAR "INTEL_JIT_PROFILER32"
80 #define NEW_DLL_ENVIRONMENT_VAR "INTEL_JIT_PROFILER64"
84 #if ITT_PLATFORM==ITT_PLATFORM_WIN
85 #define DEFAULT_DLLNAME "JitPI.dll"
88 #define DEFAULT_DLLNAME "libJitPI.so"
93 #define ANDROID_JIT_AGENT_PATH "/data/intel/libittnotify.so"
124 #if ITT_PLATFORM==ITT_PLATFORM_WIN
130 #define INIT_TOP_Stack 10000
202 #if ITT_PLATFORM==ITT_PLATFORM_WIN
218 #if ITT_PLATFORM==ITT_PLATFORM_WIN
237 #if ITT_PLATFORM==ITT_PLATFORM_WIN
302 static int bDllWasLoaded = 0;
303 char *dllName = (
char*)
rcsid;
304 #if ITT_PLATFORM==ITT_PLATFORM_WIN
305 DWORD dNameLength = 0;
319 #if ITT_PLATFORM==ITT_PLATFORM_WIN
328 #if ITT_PLATFORM==ITT_PLATFORM_WIN
333 dllName = (
char*)malloc(
sizeof(
char) * (dNameLength + 1));
338 m_libHandle = LoadLibraryExA(dllName,
NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
347 dllName = (
char*)malloc(
sizeof(
char) * (dNameLength + 1));
375 #if ITT_PLATFORM==ITT_PLATFORM_WIN
388 #if ITT_PLATFORM==ITT_PLATFORM_WIN
399 #if ITT_PLATFORM==ITT_PLATFORM_WIN
425 #if ITT_PLATFORM==ITT_PLATFORM_WIN
443 #if ITT_PLATFORM==ITT_PLATFORM_WIN
452 #if ITT_PLATFORM==ITT_PLATFORM_WIN
469 #if ITT_PLATFORM==ITT_PLATFORM_WIN
478 #if ITT_PLATFORM==ITT_PLATFORM_WIN
492 static unsigned int methodID = 0x100000;
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
#define ANDROID_JIT_AGENT_PATH
ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive()
unsigned int(* TPNotify)(unsigned int, void *)
ITT_EXTERN_C void JITAPI iJIT_RegisterCallbackEx(void *userdata, iJIT_ModeChangedEx NewModeCallBackFuncEx)
struct ThreadStack * pThreadStack
static DWORD threadLocalStorageHandle
static TPInitialize FUNC_Initialize
static const char rcsid[]
static int iJIT_DLL_is_missing
static TPNotify FUNC_NotifyEvent
ITT_EXTERN_C int JITAPI iJIT_NotifyEvent(iJIT_JVM_EVENT event_type, void *EventSpecificData)
static int loadiJIT_Funcs(void)
unsigned int(* TPInitialize)(void)
#define NEW_DLL_ENVIRONMENT_VAR
ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID()
static iJIT_IsProfilingActiveFlags executionMode
#define DLL_ENVIRONMENT_VAR
ITT_EXTERN_C void JITAPI FinalizeProcess()
ITT_EXTERN_C void JITAPI FinalizeThread()
@ iJVM_EVENT_TYPE_ENTER_NIDS
@ iJVM_EVENT_TYPE_LEAVE_NIDS
@ iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED
void(* iJIT_ModeChangedEx)(void *UserData, iJIT_ModeFlags Flags)
enum iJIT_jvm_event iJIT_JVM_EVENT
enum _iJIT_IsProfilingActiveFlags iJIT_IsProfilingActiveFlags
struct _iJIT_Method_NIDS * piJIT_Method_NIDS
typedef DWORD(__stdcall *DLL_FUNC_TYPE(SymGetOptions))(VOID)
unsigned int CurrentStack