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

#include <traced-value.h>

Inheritance diagram for v8::tracing::TracedValue:
Collaboration diagram for v8::tracing::TracedValue:

Public Member Functions

 ~TracedValue () override
 
 TracedValue (const TracedValue &)=delete
 
TracedValueoperator= (const TracedValue &)=delete
 
void EndDictionary ()
 
void EndArray ()
 
void SetInteger (const char *name, int value)
 
void SetUnsignedInteger (const char *name, uint64_t value)
 
void SetDouble (const char *name, double value)
 
void SetBoolean (const char *name, bool value)
 
void SetString (const char *name, const char *value)
 
void SetString (const char *name, const std::string &value)
 
void SetString (const char *name, std::unique_ptr< char[]> value)
 
void SetValue (const char *name, TracedValue *value)
 
void SetValue (const char *name, std::unique_ptr< TracedValue > value)
 
void BeginDictionary (const char *name)
 
void BeginArray (const char *name)
 
void AppendInteger (int)
 
void AppendDouble (double)
 
void AppendBoolean (bool)
 
void AppendString (const char *)
 
void AppendString (const std::string &value)
 
void BeginArray ()
 
void BeginDictionary ()
 
void AppendAsTraceFormat (std::string *out) const override
 
- Public Member Functions inherited from v8::ConvertableToTraceFormat
virtual ~ConvertableToTraceFormat ()=default
 

Static Public Member Functions

static std::unique_ptr< TracedValueCreate ()
 

Private Member Functions

 TracedValue ()
 
void WriteComma ()
 
void WriteName (const char *name)
 

Private Attributes

std::string data_
 
bool first_item_
 

Detailed Description

Definition at line 20 of file traced-value.h.

Constructor & Destructor Documentation

◆ ~TracedValue()

v8::tracing::TracedValue::~TracedValue ( )
override

Definition at line 83 of file traced-value.cc.

◆ TracedValue() [1/2]

v8::tracing::TracedValue::TracedValue ( const TracedValue & )
delete

◆ TracedValue() [2/2]

v8::tracing::TracedValue::TracedValue ( )
private

Definition at line 79 of file traced-value.cc.

Here is the caller graph for this function:

Member Function Documentation

◆ AppendAsTraceFormat()

void v8::tracing::TracedValue::AppendAsTraceFormat ( std::string * out) const
overridevirtual

Append the class info to the provided |out| string. The appended data must be a valid JSON object. Strings must be properly quoted, and escaped. There is no processing applied to the content after it is appended.

Implements v8::ConvertableToTraceFormat.

Definition at line 214 of file traced-value.cc.

◆ AppendBoolean()

void v8::tracing::TracedValue::AppendBoolean ( bool value)

Definition at line 157 of file traced-value.cc.

Here is the call graph for this function:

◆ AppendDouble()

void v8::tracing::TracedValue::AppendDouble ( double value)

Definition at line 150 of file traced-value.cc.

Here is the call graph for this function:

◆ AppendInteger()

void v8::tracing::TracedValue::AppendInteger ( int value)

Definition at line 144 of file traced-value.cc.

Here is the call graph for this function:

◆ AppendString() [1/2]

void v8::tracing::TracedValue::AppendString ( const char * value)

Definition at line 163 of file traced-value.cc.

Here is the call graph for this function:

◆ AppendString() [2/2]

void v8::tracing::TracedValue::AppendString ( const std::string & value)
inline

Definition at line 59 of file traced-value.h.

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

◆ BeginArray() [1/2]

void v8::tracing::TracedValue::BeginArray ( )

Definition at line 177 of file traced-value.cc.

Here is the call graph for this function:

◆ BeginArray() [2/2]

void v8::tracing::TracedValue::BeginArray ( const char * name)

Definition at line 136 of file traced-value.cc.

Here is the call graph for this function:

◆ BeginDictionary() [1/2]

void v8::tracing::TracedValue::BeginDictionary ( )

Definition at line 169 of file traced-value.cc.

Here is the call graph for this function:

◆ BeginDictionary() [2/2]

void v8::tracing::TracedValue::BeginDictionary ( const char * name)

Definition at line 128 of file traced-value.cc.

Here is the call graph for this function:

◆ Create()

std::unique_ptr< TracedValue > v8::tracing::TracedValue::Create ( )
static

Definition at line 75 of file traced-value.cc.

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

◆ EndArray()

void v8::tracing::TracedValue::EndArray ( )

Definition at line 192 of file traced-value.cc.

◆ EndDictionary()

void v8::tracing::TracedValue::EndDictionary ( )

Definition at line 185 of file traced-value.cc.

◆ operator=()

TracedValue & v8::tracing::TracedValue::operator= ( const TracedValue & )
delete

◆ SetBoolean()

void v8::tracing::TracedValue::SetBoolean ( const char * name,
bool value )

Definition at line 108 of file traced-value.cc.

Here is the call graph for this function:

◆ SetDouble()

void v8::tracing::TracedValue::SetDouble ( const char * name,
double value )

Definition at line 101 of file traced-value.cc.

Here is the call graph for this function:

◆ SetInteger()

void v8::tracing::TracedValue::SetInteger ( const char * name,
int value )

Definition at line 89 of file traced-value.cc.

Here is the call graph for this function:

◆ SetString() [1/3]

void v8::tracing::TracedValue::SetString ( const char * name,
const char * value )

Definition at line 114 of file traced-value.cc.

Here is the call graph for this function:

◆ SetString() [2/3]

void v8::tracing::TracedValue::SetString ( const char * name,
const std::string & value )
inline

Definition at line 42 of file traced-value.h.

◆ SetString() [3/3]

void v8::tracing::TracedValue::SetString ( const char * name,
std::unique_ptr< char[]> value )
inline

Definition at line 45 of file traced-value.h.

◆ SetUnsignedInteger()

void v8::tracing::TracedValue::SetUnsignedInteger ( const char * name,
uint64_t value )

Definition at line 95 of file traced-value.cc.

Here is the call graph for this function:

◆ SetValue() [1/2]

void v8::tracing::TracedValue::SetValue ( const char * name,
std::unique_ptr< TracedValue > value )
inline

Definition at line 49 of file traced-value.h.

◆ SetValue() [2/2]

void v8::tracing::TracedValue::SetValue ( const char * name,
TracedValue * value )

Definition at line 120 of file traced-value.cc.

Here is the call graph for this function:

◆ WriteComma()

void v8::tracing::TracedValue::WriteComma ( )
private

Definition at line 199 of file traced-value.cc.

Here is the caller graph for this function:

◆ WriteName()

void v8::tracing::TracedValue::WriteName ( const char * name)
private

Definition at line 207 of file traced-value.cc.

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

Member Data Documentation

◆ data_

std::string v8::tracing::TracedValue::data_
private

Definition at line 82 of file traced-value.h.

◆ first_item_

bool v8::tracing::TracedValue::first_item_
private

Definition at line 83 of file traced-value.h.


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