Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::HeapMapAsJSONVisitor Class Reference
Inheritance diagram for dart::HeapMapAsJSONVisitor:
dart::ObjectVisitor

Public Member Functions

 HeapMapAsJSONVisitor (JSONArray *array)
 
void VisitObject (ObjectPtr obj) override
 
- Public Member Functions inherited from dart::ObjectVisitor
 ObjectVisitor ()
 
virtual ~ObjectVisitor ()
 
virtual void VisitObject (ObjectPtr obj)=0
 

Detailed Description

Definition at line 760 of file pages.cc.

Constructor & Destructor Documentation

◆ HeapMapAsJSONVisitor()

dart::HeapMapAsJSONVisitor::HeapMapAsJSONVisitor ( JSONArray array)
inlineexplicit

Definition at line 762 of file pages.cc.

762: array_(array) {}

Member Function Documentation

◆ VisitObject()

void dart::HeapMapAsJSONVisitor::VisitObject ( ObjectPtr  obj)
inlineoverridevirtual

Implements dart::ObjectVisitor.

Definition at line 763 of file pages.cc.

763 {
764 array_->AddValue(obj->untag()->HeapSize() / kObjectAlignment);
765 array_->AddValue(obj->GetClassId());
766 }
void AddValue(bool b) const
Definition: json_stream.h:494
static constexpr intptr_t kObjectAlignment

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