V8 Project
|
#include "ittnotify_config.h"
#include <windows.h>
#include <malloc.h>
#include <stdlib.h>
#include "jitprofiling.h"
#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | ThreadStack |
Macros | |
#define | DLL_ENVIRONMENT_VAR "VS_PROFILER" |
#define | NEW_DLL_ENVIRONMENT_VAR "INTEL_JIT_PROFILER32" |
#define | DEFAULT_DLLNAME "JitPI.dll" |
#define | ANDROID_JIT_AGENT_PATH "/data/intel/libittnotify.so" |
#define | INIT_TOP_Stack 10000 |
Typedefs | |
typedef unsigned int(* | TPInitialize) (void) |
typedef unsigned int(* | TPNotify) (unsigned int, void *) |
typedef struct ThreadStack * | pThreadStack |
Functions | |
static int | loadiJIT_Funcs (void) |
ITT_EXTERN_C int JITAPI | iJIT_NotifyEvent (iJIT_JVM_EVENT event_type, void *EventSpecificData) |
ITT_EXTERN_C void JITAPI | iJIT_RegisterCallbackEx (void *userdata, iJIT_ModeChangedEx NewModeCallBackFuncEx) |
ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI | iJIT_IsProfilingActive () |
ITT_EXTERN_C void JITAPI | FinalizeThread () |
ITT_EXTERN_C void JITAPI | FinalizeProcess () |
ITT_EXTERN_C unsigned int JITAPI | iJIT_GetNewMethodID () |
Variables | |
static const char | rcsid [] = "\n@(#) $Revision: 234474 $\n" |
HINSTANCE | m_libHandle = NULL |
static TPInitialize | FUNC_Initialize =NULL |
static TPNotify | FUNC_NotifyEvent =NULL |
static iJIT_IsProfilingActiveFlags | executionMode = iJIT_NOTHING_RUNNING |
static int | iJIT_DLL_is_missing = 0 |
static DWORD | threadLocalStorageHandle = 0 |
#define ANDROID_JIT_AGENT_PATH "/data/intel/libittnotify.so" |
Definition at line 93 of file jitprofiling.cc.
#define DEFAULT_DLLNAME "JitPI.dll" |
Definition at line 85 of file jitprofiling.cc.
#define DLL_ENVIRONMENT_VAR "VS_PROFILER" |
Definition at line 74 of file jitprofiling.cc.
#define INIT_TOP_Stack 10000 |
Definition at line 130 of file jitprofiling.cc.
#define NEW_DLL_ENVIRONMENT_VAR "INTEL_JIT_PROFILER32" |
Definition at line 78 of file jitprofiling.cc.
typedef struct ThreadStack * pThreadStack |
typedef unsigned int(* TPInitialize) (void) |
Definition at line 96 of file jitprofiling.cc.
Definition at line 99 of file jitprofiling.cc.
ITT_EXTERN_C void JITAPI FinalizeProcess | ( | void | ) |
Definition at line 465 of file jitprofiling.cc.
References m_libHandle, NULL, and threadLocalStorageHandle.
ITT_EXTERN_C void JITAPI FinalizeThread | ( | void | ) |
Definition at line 439 of file jitprofiling.cc.
References NULL, and threadLocalStorageHandle.
ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID | ( | void | ) |
Definition at line 490 of file jitprofiling.cc.
Referenced by vTune::internal::VTUNEJITInterface::event_handler().
ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive | ( | void | ) |
Definition at line 286 of file jitprofiling.cc.
References executionMode, iJIT_DLL_is_missing, and loadiJIT_Funcs().
ITT_EXTERN_C int JITAPI iJIT_NotifyEvent | ( | iJIT_JVM_EVENT | event_type, |
void * | EventSpecificData | ||
) |
Definition at line 151 of file jitprofiling.cc.
References ThreadStack::CurrentStack, executionMode, FUNC_NotifyEvent, iJIT_CALLGRAPH_ON, iJIT_DLL_is_missing, iJVM_EVENT_TYPE_ENTER_NIDS, iJVM_EVENT_TYPE_LEAVE_NIDS, iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED, INIT_TOP_Stack, loadiJIT_Funcs(), threadLocalStorageHandle, and ThreadStack::TopStack.
Referenced by vTune::internal::VTUNEJITInterface::event_handler().
ITT_EXTERN_C void JITAPI iJIT_RegisterCallbackEx | ( | void * | userdata, |
iJIT_ModeChangedEx | NewModeCallBackFuncEx | ||
) |
Definition at line 271 of file jitprofiling.cc.
References iJIT_DLL_is_missing, iJIT_NO_NOTIFICATIONS, and loadiJIT_Funcs().
|
static |
Definition at line 300 of file jitprofiling.cc.
References ANDROID_JIT_AGENT_PATH, DEFAULT_DLLNAME, DLL_ENVIRONMENT_VAR, v8::base::DWORD(), executionMode, FUNC_Initialize, FUNC_NotifyEvent, iJIT_CALLGRAPH_ON, iJIT_DLL_is_missing, iJIT_SAMPLING_ON, m_libHandle, NEW_DLL_ENVIRONMENT_VAR, NULL, rcsid, and threadLocalStorageHandle.
Referenced by iJIT_IsProfilingActive(), iJIT_NotifyEvent(), and iJIT_RegisterCallbackEx().
|
static |
Definition at line 102 of file jitprofiling.cc.
Referenced by iJIT_IsProfilingActive(), iJIT_NotifyEvent(), and loadiJIT_Funcs().
|
static |
Definition at line 97 of file jitprofiling.cc.
Referenced by loadiJIT_Funcs().
Definition at line 100 of file jitprofiling.cc.
Referenced by iJIT_NotifyEvent(), and loadiJIT_Funcs().
|
static |
Definition at line 115 of file jitprofiling.cc.
Referenced by iJIT_IsProfilingActive(), iJIT_NotifyEvent(), iJIT_RegisterCallbackEx(), and loadiJIT_Funcs().
HINSTANCE m_libHandle = NULL |
Definition at line 86 of file jitprofiling.cc.
Referenced by FinalizeProcess(), and loadiJIT_Funcs().
|
static |
Definition at line 72 of file jitprofiling.cc.
Referenced by loadiJIT_Funcs().
|
static |
Definition at line 125 of file jitprofiling.cc.
Referenced by FinalizeProcess(), FinalizeThread(), iJIT_NotifyEvent(), and loadiJIT_Funcs().