v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::tracing Namespace Reference

Classes

class  ScopedTracer
 
class  TraceEventHelper
 
class  TraceID
 
class  TraceStringWithCopy
 

Functions

static V8_INLINE uint64_t AddTraceEventImpl (char phase, const uint8_t *category_group_enabled, const char *name, const char *scope, uint64_t id, uint64_t bind_id, int32_t num_args, const char **arg_names, const uint8_t *arg_types, const uint64_t *arg_values, unsigned int flags)
 
static V8_INLINE uint64_t AddTraceEventWithTimestampImpl (char phase, const uint8_t *category_group_enabled, const char *name, const char *scope, uint64_t id, uint64_t bind_id, int32_t num_args, const char **arg_names, const uint8_t *arg_types, const uint64_t *arg_values, unsigned int flags, int64_t timestamp)
 
template<typename T >
requires (std::is_integral<T>::value || std::is_enum<T>::value)
static V8_INLINE void SetTraceValue (T arg, unsigned char *type, uint64_t *value)
 
 INTERNAL_DECLARE_SET_TRACE_VALUE (const TraceStringWithCopy &, TRACE_VALUE_TYPE_COPY_STRING) static V8_INLINE void SetTraceValue(ConvertableToTraceFormat *convertable_value
 
template<typename T >
requires std::is_convertible<T*, ConvertableToTraceFormat*>::value
static V8_INLINE void SetTraceValue (std::unique_ptr< T > ptr, unsigned char *type, uint64_t *value)
 
static V8_INLINE uint64_t AddTraceEvent (char phase, const uint8_t *category_group_enabled, const char *name, const char *scope, uint64_t id, uint64_t bind_id, unsigned int flags)
 
template<class ARG1_TYPE >
static V8_INLINE uint64_t AddTraceEvent (char phase, const uint8_t *category_group_enabled, const char *name, const char *scope, uint64_t id, uint64_t bind_id, unsigned int flags, const char *arg1_name, ARG1_TYPE &&arg1_val)
 
template<class ARG1_TYPE , class ARG2_TYPE >
static V8_INLINE uint64_t AddTraceEvent (char phase, const uint8_t *category_group_enabled, const char *name, const char *scope, uint64_t id, uint64_t bind_id, unsigned int flags, const char *arg1_name, ARG1_TYPE &&arg1_val, const char *arg2_name, ARG2_TYPE &&arg2_val)
 
static V8_INLINE uint64_t AddTraceEventWithTimestamp (char phase, const uint8_t *category_group_enabled, const char *name, const char *scope, uint64_t id, uint64_t bind_id, unsigned int flags, int64_t timestamp)
 
template<class ARG1_TYPE >
static V8_INLINE uint64_t AddTraceEventWithTimestamp (char phase, const uint8_t *category_group_enabled, const char *name, const char *scope, uint64_t id, uint64_t bind_id, unsigned int flags, int64_t timestamp, const char *arg1_name, ARG1_TYPE &&arg1_val)
 
template<class ARG1_TYPE , class ARG2_TYPE >
static V8_INLINE uint64_t AddTraceEventWithTimestamp (char phase, const uint8_t *category_group_enabled, const char *name, const char *scope, uint64_t id, uint64_t bind_id, unsigned int flags, int64_t timestamp, const char *arg1_name, ARG1_TYPE &&arg1_val, const char *arg2_name, ARG2_TYPE &&arg2_val)
 

Variables

const int kZeroNumArgs = 0
 
const decltype(nullptr) kGlobalScope = nullptr
 
const uint64_t kNoId = 0
 
unsigned char * type
 
unsigned char uint64_t * value
 

Function Documentation

◆ AddTraceEvent() [1/3]

static V8_INLINE uint64_t v8::internal::tracing::AddTraceEvent ( char phase,
const uint8_t * category_group_enabled,
const char * name,
const char * scope,
uint64_t id,
uint64_t bind_id,
unsigned int flags )
static

Definition at line 477 of file trace-event.h.

◆ AddTraceEvent() [2/3]

template<class ARG1_TYPE >
static V8_INLINE uint64_t v8::internal::tracing::AddTraceEvent ( char phase,
const uint8_t * category_group_enabled,
const char * name,
const char * scope,
uint64_t id,
uint64_t bind_id,
unsigned int flags,
const char * arg1_name,
ARG1_TYPE && arg1_val )
static

Definition at line 488 of file trace-event.h.

Here is the call graph for this function:

◆ AddTraceEvent() [3/3]

template<class ARG1_TYPE , class ARG2_TYPE >
static V8_INLINE uint64_t v8::internal::tracing::AddTraceEvent ( char phase,
const uint8_t * category_group_enabled,
const char * name,
const char * scope,
uint64_t id,
uint64_t bind_id,
unsigned int flags,
const char * arg1_name,
ARG1_TYPE && arg1_val,
const char * arg2_name,
ARG2_TYPE && arg2_val )
static

Definition at line 502 of file trace-event.h.

Here is the call graph for this function:

◆ AddTraceEventImpl()

static V8_INLINE uint64_t v8::internal::tracing::AddTraceEventImpl ( char phase,
const uint8_t * category_group_enabled,
const char * name,
const char * scope,
uint64_t id,
uint64_t bind_id,
int32_t num_args,
const char ** arg_names,
const uint8_t * arg_types,
const uint64_t * arg_values,
unsigned int flags )
static

Definition at line 383 of file trace-event.h.

Here is the call graph for this function:

◆ AddTraceEventWithTimestamp() [1/3]

static V8_INLINE uint64_t v8::internal::tracing::AddTraceEventWithTimestamp ( char phase,
const uint8_t * category_group_enabled,
const char * name,
const char * scope,
uint64_t id,
uint64_t bind_id,
unsigned int flags,
int64_t timestamp )
static

Definition at line 520 of file trace-event.h.

◆ AddTraceEventWithTimestamp() [2/3]

template<class ARG1_TYPE >
static V8_INLINE uint64_t v8::internal::tracing::AddTraceEventWithTimestamp ( char phase,
const uint8_t * category_group_enabled,
const char * name,
const char * scope,
uint64_t id,
uint64_t bind_id,
unsigned int flags,
int64_t timestamp,
const char * arg1_name,
ARG1_TYPE && arg1_val )
static

Definition at line 530 of file trace-event.h.

Here is the call graph for this function:

◆ AddTraceEventWithTimestamp() [3/3]

template<class ARG1_TYPE , class ARG2_TYPE >
static V8_INLINE uint64_t v8::internal::tracing::AddTraceEventWithTimestamp ( char phase,
const uint8_t * category_group_enabled,
const char * name,
const char * scope,
uint64_t id,
uint64_t bind_id,
unsigned int flags,
int64_t timestamp,
const char * arg1_name,
ARG1_TYPE && arg1_val,
const char * arg2_name,
ARG2_TYPE && arg2_val )
static

Definition at line 544 of file trace-event.h.

Here is the call graph for this function:

◆ AddTraceEventWithTimestampImpl()

static V8_INLINE uint64_t v8::internal::tracing::AddTraceEventWithTimestampImpl ( char phase,
const uint8_t * category_group_enabled,
const char * name,
const char * scope,
uint64_t id,
uint64_t bind_id,
int32_t num_args,
const char ** arg_names,
const uint8_t * arg_types,
const uint64_t * arg_values,
unsigned int flags,
int64_t timestamp )
static

Definition at line 405 of file trace-event.h.

Here is the call graph for this function:

◆ INTERNAL_DECLARE_SET_TRACE_VALUE()

v8::internal::tracing::INTERNAL_DECLARE_SET_TRACE_VALUE ( const TraceStringWithCopy & ,
TRACE_VALUE_TYPE_COPY_STRING  )

◆ SetTraceValue() [1/2]

template<typename T >
requires std::is_convertible<T*, ConvertableToTraceFormat*>::value
static V8_INLINE void v8::internal::tracing::SetTraceValue ( std::unique_ptr< T > ptr,
unsigned char * type,
uint64_t * value )
static

Definition at line 464 of file trace-event.h.

Here is the call graph for this function:

◆ SetTraceValue() [2/2]

template<typename T >
requires (std::is_integral<T>::value || std::is_enum<T>::value)
static V8_INLINE void v8::internal::tracing::SetTraceValue ( T arg,
unsigned char * type,
uint64_t * value )
static

Definition at line 432 of file trace-event.h.

Here is the caller graph for this function:

Variable Documentation

◆ kGlobalScope

const decltype(nullptr) v8::internal::tracing::kGlobalScope = nullptr

Definition at line 309 of file trace-event.h.

◆ kNoId

const uint64_t v8::internal::tracing::kNoId = 0

Definition at line 310 of file trace-event.h.

◆ kZeroNumArgs

const int v8::internal::tracing::kZeroNumArgs = 0

Definition at line 308 of file trace-event.h.

◆ type

unsigned char* v8::internal::tracing::type

Definition at line 458 of file trace-event.h.

◆ value

* v8::internal::tracing::value
Initial value:
{
#define TRACE_VALUE_TYPE_CONVERTABLE

Definition at line 458 of file trace-event.h.