v8  7.0.276 (node 11.14.0)
V8 is Google's open source JavaScript engine
TracingController Class Reference

#include <v8-tracing.h>

Inheritance diagram for TracingController:
Collaboration diagram for TracingController:

Public Types

enum  Mode { DISABLED = 0 , RECORDING_MODE }
 
enum  CategoryGroupEnabledFlags { ENABLED_FOR_RECORDING = 1 << 0 , ENABLED_FOR_EVENT_CALLBACK = 1 << 2 , ENABLED_FOR_ETW_EXPORT = 1 << 3 }
 

Public Member Functions

 TracingController ()
 
 ~TracingController () override
 
void Initialize (TraceBuffer *trace_buffer)
 
const uint8_t * GetCategoryGroupEnabled (const char *category_group) override
 
uint64_t AddTraceEvent (char phase, const uint8_t *category_enabled_flag, 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, std::unique_ptr< v8::ConvertableToTraceFormat > *arg_convertables, unsigned int flags) override
 
uint64_t AddTraceEventWithTimestamp (char phase, const uint8_t *category_enabled_flag, 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, std::unique_ptr< v8::ConvertableToTraceFormat > *arg_convertables, unsigned int flags, int64_t timestamp) override
 
void UpdateTraceEventDuration (const uint8_t *category_enabled_flag, const char *name, uint64_t handle) override
 
void AddTraceStateObserver (v8::TracingController::TraceStateObserver *observer) override
 
void RemoveTraceStateObserver (v8::TracingController::TraceStateObserver *observer) override
 
void StartTracing (TraceConfig *trace_config)
 
void StopTracing ()
 

Static Public Member Functions

static const char * GetCategoryGroupName (const uint8_t *category_enabled_flag)
 

Protected Member Functions

virtual int64_t CurrentTimestampMicroseconds ()
 
virtual int64_t CurrentCpuTimestampMicroseconds ()
 

Detailed Description

Definition at line 221 of file v8-tracing.h.

Member Enumeration Documentation

◆ CategoryGroupEnabledFlags

Enumerator
ENABLED_FOR_RECORDING 
ENABLED_FOR_EVENT_CALLBACK 
ENABLED_FOR_ETW_EXPORT 

Definition at line 230 of file v8-tracing.h.

◆ Mode

enum Mode
Enumerator
DISABLED 
RECORDING_MODE 

Definition at line 224 of file v8-tracing.h.

Constructor & Destructor Documentation

◆ TracingController()

◆ ~TracingController()

~TracingController ( )
override

Member Function Documentation

◆ AddTraceEvent()

uint64_t AddTraceEvent ( char  phase,
const uint8_t *  category_enabled_flag,
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,
std::unique_ptr< v8::ConvertableToTraceFormat > *  arg_convertables,
unsigned int  flags 
)
override

◆ AddTraceEventWithTimestamp()

uint64_t AddTraceEventWithTimestamp ( char  phase,
const uint8_t *  category_enabled_flag,
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,
std::unique_ptr< v8::ConvertableToTraceFormat > *  arg_convertables,
unsigned int  flags,
int64_t  timestamp 
)
override

◆ AddTraceStateObserver()

void AddTraceStateObserver ( v8::TracingController::TraceStateObserver observer)
override

◆ CurrentCpuTimestampMicroseconds()

virtual int64_t CurrentCpuTimestampMicroseconds ( )
protectedvirtual

◆ CurrentTimestampMicroseconds()

virtual int64_t CurrentTimestampMicroseconds ( )
protectedvirtual

◆ GetCategoryGroupEnabled()

const uint8_t* GetCategoryGroupEnabled ( const char *  category_group)
override

◆ GetCategoryGroupName()

static const char* GetCategoryGroupName ( const uint8_t *  category_enabled_flag)
static

◆ Initialize()

void Initialize ( TraceBuffer trace_buffer)

◆ RemoveTraceStateObserver()

void RemoveTraceStateObserver ( v8::TracingController::TraceStateObserver observer)
override

◆ StartTracing()

void StartTracing ( TraceConfig trace_config)

◆ StopTracing()

void StopTracing ( )

◆ UpdateTraceEventDuration()

void UpdateTraceEventDuration ( const uint8_t *  category_enabled_flag,
const char *  name,
uint64_t  handle 
)
override

The documentation for this class was generated from the following file: