V8 Project
ittnotify_config.h File Reference
#include <windows.h>
#include "ittnotify_types.h"
+ Include dependency graph for ittnotify_config.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ___itt_thread_info
 
struct  ___itt_api_info_20101001
 
struct  ___itt_api_info
 
struct  ___itt_global
 

Macros

#define ITT_ARCH_IA32   1
 
#define ITT_ARCH_IA32E   2
 
#define ITT_ARCH_IA64   3
 
#define ITT_ARCH   ITT_ARCH_IA32
 
#define ITT_EXTERN_C   /* nothing */
 
#define ITT_TO_STR_AUX(x)   #x
 
#define ITT_TO_STR(x)   ITT_TO_STR_AUX(x)
 
#define __ITT_BUILD_ASSERT(expr, suffix)   do { static char __itt_build_check_##suffix[(expr) ? 1 : -1]; __itt_build_check_##suffix[0] = 0; } while(0)
 
#define _ITT_BUILD_ASSERT(expr, suffix)   __ITT_BUILD_ASSERT((expr), suffix)
 
#define ITT_BUILD_ASSERT(expr)   _ITT_BUILD_ASSERT((expr), __LINE__)
 
#define ITT_MAGIC   { 0xED, 0xAB, 0xAB, 0xEC, 0x0D, 0xEE, 0xDA, 0x30 }
 
#define API_VERSION_BUILD   20111111
 
#define API_VERSION_NUM   0.0.0
 
#define API_VERSION   "ITT-API-Version " ITT_TO_STR(API_VERSION_NUM) " (" ITT_TO_STR(API_VERSION_BUILD) ")"
 
#define MUTEX_INITIALIZER   { 0 }
 
#define strong_alias(name, aliasname)   /* empty for Windows */
 
#define __itt_get_proc(lib, name)   GetProcAddress(lib, name)
 
#define __itt_mutex_init(mutex)   InitializeCriticalSection(mutex)
 
#define __itt_mutex_lock(mutex)   EnterCriticalSection(mutex)
 
#define __itt_mutex_unlock(mutex)   LeaveCriticalSection(mutex)
 
#define __itt_load_lib(name)   LoadLibraryA(name)
 
#define __itt_unload_lib(handle)   FreeLibrary(handle)
 
#define __itt_system_error()   (int)GetLastError()
 
#define __itt_fstrcmp(s1, s2)   lstrcmpA(s1, s2)
 
#define __itt_fstrlen(s)   lstrlenA(s)
 
#define __itt_fstrcpyn(s1, s2, l)   lstrcpynA(s1, s2, l)
 
#define __itt_fstrdup(s)   _strdup(s)
 
#define __itt_thread_id()   GetCurrentThreadId()
 
#define __itt_thread_yield()   SwitchToThread()
 
#define NEW_THREAD_INFO_W(gptr, h, h_tail, t, s, n)
 
#define NEW_THREAD_INFO_A(gptr, h, h_tail, t, s, n)
 
#define NEW_DOMAIN_W(gptr, h, h_tail, name)
 
#define NEW_DOMAIN_A(gptr, h, h_tail, name)
 
#define NEW_STRING_HANDLE_W(gptr, h, h_tail, name)
 
#define NEW_STRING_HANDLE_A(gptr, h, h_tail, name)
 

Typedefs

typedef HMODULE lib_t
 
typedef DWORD TIDT
 
typedef CRITICAL_SECTION mutex_t
 
typedef struct ___itt_thread_info __itt_thread_info
 
typedef struct ___itt_api_info_20101001 __itt_api_info_20101001
 
typedef struct ___itt_api_info __itt_api_info
 
typedef struct ___itt_global __itt_global
 

Enumerations

enum  __itt_collection_state { __itt_collection_normal = 0 , __itt_collection_paused = 1 }
 
enum  __itt_thread_state { __itt_thread_normal = 0 , __itt_thread_ignored = 1 }
 

Functions

ITT_INLINE int __itt_interlocked_increment (volatile long *ptr) ITT_INLINE_ATTRIBUTE
 

Macro Definition Documentation

◆ __ITT_BUILD_ASSERT

#define __ITT_BUILD_ASSERT (   expr,
  suffix 
)    do { static char __itt_build_check_##suffix[(expr) ? 1 : -1]; __itt_build_check_##suffix[0] = 0; } while(0)

Definition at line 195 of file ittnotify_config.h.

◆ __itt_fstrcmp

#define __itt_fstrcmp (   s1,
  s2 
)    lstrcmpA(s1, s2)

Definition at line 243 of file ittnotify_config.h.

◆ __itt_fstrcpyn

#define __itt_fstrcpyn (   s1,
  s2,
 
)    lstrcpynA(s1, s2, l)

Definition at line 245 of file ittnotify_config.h.

◆ __itt_fstrdup

#define __itt_fstrdup (   s)    _strdup(s)

Definition at line 246 of file ittnotify_config.h.

◆ __itt_fstrlen

#define __itt_fstrlen (   s)    lstrlenA(s)

Definition at line 244 of file ittnotify_config.h.

◆ __itt_get_proc

#define __itt_get_proc (   lib,
  name 
)    GetProcAddress(lib, name)

Definition at line 236 of file ittnotify_config.h.

◆ __itt_load_lib

#define __itt_load_lib (   name)    LoadLibraryA(name)

Definition at line 240 of file ittnotify_config.h.

◆ __itt_mutex_init

#define __itt_mutex_init (   mutex)    InitializeCriticalSection(mutex)

Definition at line 237 of file ittnotify_config.h.

◆ __itt_mutex_lock

#define __itt_mutex_lock (   mutex)    EnterCriticalSection(mutex)

Definition at line 238 of file ittnotify_config.h.

◆ __itt_mutex_unlock

#define __itt_mutex_unlock (   mutex)    LeaveCriticalSection(mutex)

Definition at line 239 of file ittnotify_config.h.

◆ __itt_system_error

#define __itt_system_error ( )    (int)GetLastError()

Definition at line 242 of file ittnotify_config.h.

◆ __itt_thread_id

#define __itt_thread_id ( )    GetCurrentThreadId()

Definition at line 247 of file ittnotify_config.h.

◆ __itt_thread_yield

#define __itt_thread_yield ( )    SwitchToThread()

Definition at line 248 of file ittnotify_config.h.

◆ __itt_unload_lib

#define __itt_unload_lib (   handle)    FreeLibrary(handle)

Definition at line 241 of file ittnotify_config.h.

◆ _ITT_BUILD_ASSERT

#define _ITT_BUILD_ASSERT (   expr,
  suffix 
)    __ITT_BUILD_ASSERT((expr), suffix)

Definition at line 196 of file ittnotify_config.h.

◆ API_VERSION

#define API_VERSION   "ITT-API-Version " ITT_TO_STR(API_VERSION_NUM) " (" ITT_TO_STR(API_VERSION_BUILD) ")"

Definition at line 208 of file ittnotify_config.h.

◆ API_VERSION_BUILD

#define API_VERSION_BUILD   20111111

Definition at line 202 of file ittnotify_config.h.

◆ API_VERSION_NUM

#define API_VERSION_NUM   0.0.0

Definition at line 205 of file ittnotify_config.h.

◆ ITT_ARCH

#define ITT_ARCH   ITT_ARCH_IA32

Definition at line 182 of file ittnotify_config.h.

◆ ITT_ARCH_IA32

#define ITT_ARCH_IA32   1

Definition at line 165 of file ittnotify_config.h.

◆ ITT_ARCH_IA32E

#define ITT_ARCH_IA32E   2

Definition at line 169 of file ittnotify_config.h.

◆ ITT_ARCH_IA64

#define ITT_ARCH_IA64   3

Definition at line 173 of file ittnotify_config.h.

◆ ITT_BUILD_ASSERT

#define ITT_BUILD_ASSERT (   expr)    _ITT_BUILD_ASSERT((expr), __LINE__)

Definition at line 197 of file ittnotify_config.h.

◆ ITT_EXTERN_C

#define ITT_EXTERN_C   /* nothing */

Definition at line 189 of file ittnotify_config.h.

◆ ITT_MAGIC

#define ITT_MAGIC   { 0xED, 0xAB, 0xAB, 0xEC, 0x0D, 0xEE, 0xDA, 0x30 }

Definition at line 199 of file ittnotify_config.h.

◆ ITT_TO_STR

#define ITT_TO_STR (   x)    ITT_TO_STR_AUX(x)

Definition at line 193 of file ittnotify_config.h.

◆ ITT_TO_STR_AUX

#define ITT_TO_STR_AUX (   x)    #x

Definition at line 192 of file ittnotify_config.h.

◆ MUTEX_INITIALIZER

#define MUTEX_INITIALIZER   { 0 }

Definition at line 216 of file ittnotify_config.h.

◆ NEW_DOMAIN_A

#define NEW_DOMAIN_A (   gptr,
  h,
  h_tail,
  name 
)
Value:
{ \
h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
if (h != NULL) { \
h->flags = 0; /* domain is disabled by default */ \
h->nameA = name ? __itt_fstrdup(name) : NULL; \
h->nameW = NULL; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->domain_list = h; \
else \
h_tail->next = h; \
} \
}
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 expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
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 __itt_fstrdup(s)

Definition at line 437 of file ittnotify_config.h.

◆ NEW_DOMAIN_W

#define NEW_DOMAIN_W (   gptr,
  h,
  h_tail,
  name 
)
Value:
{ \
h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
if (h != NULL) { \
h->flags = 0; /* domain is disabled by default */ \
h->nameA = NULL; \
h->nameW = name ? _wcsdup(name) : NULL; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->domain_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 421 of file ittnotify_config.h.

◆ NEW_STRING_HANDLE_A

#define NEW_STRING_HANDLE_A (   gptr,
  h,
  h_tail,
  name 
)
Value:
{ \
h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
if (h != NULL) { \
h->strA = name ? __itt_fstrdup(name) : NULL; \
h->strW = NULL; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->string_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 468 of file ittnotify_config.h.

◆ NEW_STRING_HANDLE_W

#define NEW_STRING_HANDLE_W (   gptr,
  h,
  h_tail,
  name 
)
Value:
{ \
h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
if (h != NULL) { \
h->strA = NULL; \
h->strW = name ? _wcsdup(name) : NULL; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->string_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 453 of file ittnotify_config.h.

◆ NEW_THREAD_INFO_A

#define NEW_THREAD_INFO_A (   gptr,
  h,
  h_tail,
  t,
  s,
 
)
Value:
{ \
h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
if (h != NULL) { \
h->tid = t; \
h->nameA = n ? __itt_fstrdup(n) : NULL; \
h->nameW = NULL; \
h->state = s; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->thread_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 404 of file ittnotify_config.h.

◆ NEW_THREAD_INFO_W

#define NEW_THREAD_INFO_W (   gptr,
  h,
  h_tail,
  t,
  s,
 
)
Value:
{ \
h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
if (h != NULL) { \
h->tid = t; \
h->nameA = NULL; \
h->nameW = n ? _wcsdup(n) : NULL; \
h->state = s; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->thread_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 387 of file ittnotify_config.h.

◆ strong_alias

#define strong_alias (   name,
  aliasname 
)    /* empty for Windows */

Definition at line 217 of file ittnotify_config.h.

Typedef Documentation

◆ __itt_api_info

◆ __itt_api_info_20101001

◆ __itt_global

typedef struct ___itt_global __itt_global

◆ __itt_thread_info

◆ lib_t

typedef HMODULE lib_t

Definition at line 213 of file ittnotify_config.h.

◆ mutex_t

typedef CRITICAL_SECTION mutex_t

Definition at line 215 of file ittnotify_config.h.

◆ TIDT

typedef DWORD TIDT

Definition at line 214 of file ittnotify_config.h.

Enumeration Type Documentation

◆ __itt_collection_state

Enumerator
__itt_collection_normal 
__itt_collection_paused 

Definition at line 314 of file ittnotify_config.h.

314  {
__itt_collection_state
@ __itt_collection_paused
@ __itt_collection_normal

◆ __itt_thread_state

Enumerator
__itt_thread_normal 
__itt_thread_ignored 

Definition at line 319 of file ittnotify_config.h.

319  {
__itt_thread_state
@ __itt_thread_normal
@ __itt_thread_ignored

Function Documentation

◆ __itt_interlocked_increment()

ITT_INLINE int __itt_interlocked_increment ( volatile long *  ptr)

Definition at line 251 of file ittnotify_config.h.

252 {
253  return InterlockedIncrement(ptr);
254 }