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

#include <v8-stack-trace-impl.h>

Collaboration diagram for v8_inspector::AsyncStackTrace:

Public Member Functions

 AsyncStackTrace (const AsyncStackTrace &)=delete
 
AsyncStackTraceoperator= (const AsyncStackTrace &)=delete
 
std::unique_ptr< protocol::Runtime::StackTrace > buildInspectorObject (V8Debugger *debugger, int maxAsyncDepth) const
 
const String16description () const
 
std::weak_ptr< AsyncStackTraceparent () const
 
bool isEmpty () const
 
const V8StackTraceIdexternalParent () const
 
const std::vector< std::shared_ptr< StackFrame > > & frames () const
 

Static Public Member Functions

static std::shared_ptr< AsyncStackTracecapture (V8Debugger *, const String16 &description, bool skipTopFrame=false)
 
static uintptr_t store (V8Debugger *debugger, std::shared_ptr< AsyncStackTrace > stack)
 

Private Member Functions

 AsyncStackTrace (const String16 &description, std::vector< std::shared_ptr< StackFrame > > frames, std::shared_ptr< AsyncStackTrace > asyncParent, const V8StackTraceId &externalParent)
 

Private Attributes

uintptr_t m_id
 
String16 m_description
 
std::vector< std::shared_ptr< StackFrame > > m_frames
 
std::weak_ptr< AsyncStackTracem_asyncParent
 
V8StackTraceId m_externalParent
 

Detailed Description

Definition at line 115 of file v8-stack-trace-impl.h.

Constructor & Destructor Documentation

◆ AsyncStackTrace() [1/2]

v8_inspector::AsyncStackTrace::AsyncStackTrace ( const AsyncStackTrace & )
delete

◆ AsyncStackTrace() [2/2]

v8_inspector::AsyncStackTrace::AsyncStackTrace ( const String16 & description,
std::vector< std::shared_ptr< StackFrame > > frames,
std::shared_ptr< AsyncStackTrace > asyncParent,
const V8StackTraceId & externalParent )
private

Definition at line 440 of file v8-stack-trace-impl.cc.

Member Function Documentation

◆ buildInspectorObject()

std::unique_ptr< protocol::Runtime::StackTrace > v8_inspector::AsyncStackTrace::buildInspectorObject ( V8Debugger * debugger,
int maxAsyncDepth ) const

Definition at line 452 of file v8-stack-trace-impl.cc.

◆ capture()

std::shared_ptr< AsyncStackTrace > v8_inspector::AsyncStackTrace::capture ( V8Debugger * debugger,
const String16 & description,
bool skipTopFrame = false )
static

Definition at line 400 of file v8-stack-trace-impl.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ description()

const String16 & v8_inspector::AsyncStackTrace::description ( ) const

Definition at line 466 of file v8-stack-trace-impl.cc.

◆ externalParent()

const V8StackTraceId & v8_inspector::AsyncStackTrace::externalParent ( ) const
inline

Definition at line 131 of file v8-stack-trace-impl.h.

◆ frames()

const std::vector< std::shared_ptr< StackFrame > > & v8_inspector::AsyncStackTrace::frames ( ) const
inline

Definition at line 133 of file v8-stack-trace-impl.h.

◆ isEmpty()

bool v8_inspector::AsyncStackTrace::isEmpty ( ) const

Definition at line 472 of file v8-stack-trace-impl.cc.

◆ operator=()

AsyncStackTrace & v8_inspector::AsyncStackTrace::operator= ( const AsyncStackTrace & )
delete

◆ parent()

std::weak_ptr< AsyncStackTrace > v8_inspector::AsyncStackTrace::parent ( ) const

Definition at line 468 of file v8-stack-trace-impl.cc.

◆ store()

uintptr_t v8_inspector::AsyncStackTrace::store ( V8Debugger * debugger,
std::shared_ptr< AsyncStackTrace > stack )
static

Definition at line 459 of file v8-stack-trace-impl.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_asyncParent

std::weak_ptr<AsyncStackTrace> v8_inspector::AsyncStackTrace::m_asyncParent
private

Definition at line 147 of file v8-stack-trace-impl.h.

◆ m_description

String16 v8_inspector::AsyncStackTrace::m_description
private

Definition at line 144 of file v8-stack-trace-impl.h.

◆ m_externalParent

V8StackTraceId v8_inspector::AsyncStackTrace::m_externalParent
private

Definition at line 148 of file v8-stack-trace-impl.h.

◆ m_frames

std::vector<std::shared_ptr<StackFrame> > v8_inspector::AsyncStackTrace::m_frames
private

Definition at line 146 of file v8-stack-trace-impl.h.

◆ m_id

uintptr_t v8_inspector::AsyncStackTrace::m_id
private

Definition at line 143 of file v8-stack-trace-impl.h.


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