Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Static Public Attributes | List of all members
dart::V8SnapshotProfileWriter Class Reference

#include <v8_snapshot_writer.h>

Inheritance diagram for dart::V8SnapshotProfileWriter:
dart::ZoneAllocated

Classes

struct  ObjectId
 
struct  Reference
 

Public Member Functions

 V8SnapshotProfileWriter (Zone *zone)
 
virtual ~V8SnapshotProfileWriter ()
 
void SetObjectTypeAndName (const ObjectId &object_id, const char *type, const char *name)
 
void AttributeBytesTo (const ObjectId &object_id, size_t num_bytes)
 
void AttributeReferenceTo (const ObjectId &from_object_id, const Reference &reference, const ObjectId &to_object_id)
 
void AttributeWeakReferenceTo (const ObjectId &from_object_id, const Reference &reference, const ObjectId &to_object_id, const ObjectId &replacement_object_id)
 
void AddRoot (const ObjectId &object_id, const char *name=nullptr)
 
bool HasId (const ObjectId &object_id)
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Static Public Attributes

static const ObjectId kArtificialRootId {IdSpace::kArtificial, 0}
 

Detailed Description

Definition at line 30 of file v8_snapshot_writer.h.

Constructor & Destructor Documentation

◆ V8SnapshotProfileWriter()

dart::V8SnapshotProfileWriter::V8SnapshotProfileWriter ( Zone zone)
inlineexplicit

Definition at line 89 of file v8_snapshot_writer.h.

89{}

◆ ~V8SnapshotProfileWriter()

virtual dart::V8SnapshotProfileWriter::~V8SnapshotProfileWriter ( )
inlinevirtual

Definition at line 90 of file v8_snapshot_writer.h.

90{}

Member Function Documentation

◆ AddRoot()

void dart::V8SnapshotProfileWriter::AddRoot ( const ObjectId object_id,
const char *  name = nullptr 
)
inline

Definition at line 103 of file v8_snapshot_writer.h.

103{}

◆ AttributeBytesTo()

void dart::V8SnapshotProfileWriter::AttributeBytesTo ( const ObjectId object_id,
size_t  num_bytes 
)
inline

Definition at line 95 of file v8_snapshot_writer.h.

95{}

◆ AttributeReferenceTo()

void dart::V8SnapshotProfileWriter::AttributeReferenceTo ( const ObjectId from_object_id,
const Reference reference,
const ObjectId to_object_id 
)
inline

Definition at line 96 of file v8_snapshot_writer.h.

98 {}

◆ AttributeWeakReferenceTo()

void dart::V8SnapshotProfileWriter::AttributeWeakReferenceTo ( const ObjectId from_object_id,
const Reference reference,
const ObjectId to_object_id,
const ObjectId replacement_object_id 
)
inline

Definition at line 99 of file v8_snapshot_writer.h.

102 {}

◆ HasId()

bool dart::V8SnapshotProfileWriter::HasId ( const ObjectId object_id)
inline

Definition at line 104 of file v8_snapshot_writer.h.

104{ return false; }

◆ SetObjectTypeAndName()

void dart::V8SnapshotProfileWriter::SetObjectTypeAndName ( const ObjectId object_id,
const char *  type,
const char *  name 
)
inline

Definition at line 92 of file v8_snapshot_writer.h.

94 {}

Member Data Documentation

◆ kArtificialRootId

const V8SnapshotProfileWriter::ObjectId dart::V8SnapshotProfileWriter::kArtificialRootId {IdSpace::kArtificial, 0}
static

Definition at line 86 of file v8_snapshot_writer.h.


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