![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <stddef.h>
#include <memory>
#include "v8config.h"
#include "src/tracing/trace-event-no-perfetto.h"
#include "include/v8-platform.h"
#include "src/base/atomicops.h"
#include "src/base/macros.h"
Go to the source code of this file.
Namespaces | |
namespace | v8 |
namespace | v8::internal |
namespace | v8::internal::tracing |
Enumerations | |
enum | CategoryGroupEnabledFlags { kEnabledForRecording_CategoryGroupEnabledFlags = 1 << 0 , kEnabledForEventCallback_CategoryGroupEnabledFlags = 1 << 2 , kEnabledForETWExport_CategoryGroupEnabledFlags = 1 << 3 } |
Functions | |
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 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) |
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) |
v8::internal::tracing::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 | v8::internal::tracing::SetTraceValue (std::unique_ptr< T > ptr, unsigned char *type, uint64_t *value) |
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) |
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) |
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 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) |
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) |
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) |
Variables | |
const int | v8::internal::tracing::kZeroNumArgs = 0 |
const decltype(nullptr) | v8::internal::tracing::kGlobalScope = nullptr |
const uint64_t | v8::internal::tracing::kNoId = 0 |
unsigned char * | v8::internal::tracing::type |
unsigned char uint64_t * | v8::internal::tracing::value |
#define INTERNAL_DECLARE_SET_TRACE_VALUE | ( | actual_type, | |
value_type_id ) |
Definition at line 442 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_ADD | ( | phase, | |
category_group, | |||
name, | |||
flags, | |||
... ) |
Definition at line 181 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_ADD_SCOPED | ( | category_group, | |
name, | |||
... ) |
Definition at line 195 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_ADD_SCOPED_WITH_FLOW | ( | category_group, | |
name, | |||
bind_id, | |||
flow_flags, | |||
... ) |
Definition at line 209 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_ADD_WITH_ID | ( | phase, | |
category_group, | |||
name, | |||
id, | |||
flags, | |||
... ) |
Definition at line 229 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_ADD_WITH_ID_AND_TIMESTAMP | ( | phase, | |
category_group, | |||
name, | |||
id, | |||
timestamp, | |||
flags, | |||
... ) |
Definition at line 258 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMP | ( | phase, | |
category_group, | |||
name, | |||
id, | |||
thread_id, | |||
timestamp, | |||
flags, | |||
... ) |
Definition at line 277 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_ADD_WITH_TIMESTAMP | ( | phase, | |
category_group, | |||
name, | |||
timestamp, | |||
flags, | |||
... ) |
Definition at line 245 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_CALL_STATS_SCOPED | ( | isolate, | |
category_group, | |||
name ) |
Definition at line 296 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE | ( | ) |
Definition at line 57 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO | ( | category_group | ) |
Definition at line 172 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO_CUSTOM_VARIABLES | ( | category_group, | |
atomic, | |||
category_group_enabled ) |
Definition at line 160 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_UID | ( | name_prefix | ) |
Definition at line 150 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_UID2 | ( | a, | |
b ) |
Definition at line 149 of file trace-event.h.
#define INTERNAL_TRACE_EVENT_UID3 | ( | a, | |
b ) |
Definition at line 148 of file trace-event.h.
#define INTERNAL_TRACE_MEMORY | ( | category, | |
name ) |
Definition at line 65 of file trace-event.h.
#define TRACE_EVENT_API_ADD_TRACE_EVENT v8::internal::tracing::AddTraceEventImpl |
Definition at line 102 of file trace-event.h.
#define TRACE_EVENT_API_ADD_TRACE_EVENT_WITH_TIMESTAMP v8::internal::tracing::AddTraceEventWithTimestampImpl |
Definition at line 118 of file trace-event.h.
#define TRACE_EVENT_API_ATOMIC_LOAD | ( | var | ) |
Definition at line 133 of file trace-event.h.
#define TRACE_EVENT_API_ATOMIC_STORE | ( | var, | |
value ) |
Definition at line 134 of file trace-event.h.
#define TRACE_EVENT_API_ATOMIC_WORD v8::base::AtomicWord |
Definition at line 132 of file trace-event.h.
#define TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED |
Definition at line 80 of file trace-event.h.
#define TRACE_EVENT_API_GET_NUM_TRACES_RECORDED UNIMPLEMENTED() |
Definition at line 87 of file trace-event.h.
#define TRACE_EVENT_API_LOAD_CATEGORY_GROUP_ENABLED | ( | ) |
Definition at line 139 of file trace-event.h.
#define TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION |
Definition at line 126 of file trace-event.h.
#define TRACE_EVENT_CALL_STATS_SCOPED | ( | isolate, | |
category_group, | |||
name ) |
Definition at line 282 of file trace-event.h.
#define TRACE_ID_WITH_SCOPE | ( | scope, | |
id ) |
Definition at line 54 of file trace-event.h.
#define TRACE_STR_COPY | ( | str | ) |
Definition at line 50 of file trace-event.h.
Enumerator | |
---|---|
kEnabledForRecording_CategoryGroupEnabledFlags | |
kEnabledForEventCallback_CategoryGroupEnabledFlags | |
kEnabledForETWExport_CategoryGroupEnabledFlags |
Definition at line 35 of file trace-event.h.