Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::SubtypeTestCacheSerializationCluster Class Reference
Inheritance diagram for dart::SubtypeTestCacheSerializationCluster:
dart::SerializationCluster dart::ZoneAllocated

Public Member Functions

 SubtypeTestCacheSerializationCluster ()
 
 ~SubtypeTestCacheSerializationCluster ()
 
void Trace (Serializer *s, ObjectPtr object)
 
void WriteAlloc (Serializer *s)
 
void WriteFill (Serializer *s)
 
- Public Member Functions inherited from dart::SerializationCluster
 SerializationCluster (const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)
 
virtual ~SerializationCluster ()
 
virtual void Trace (Serializer *serializer, ObjectPtr object)=0
 
virtual void WriteAlloc (Serializer *serializer)=0
 
virtual void WriteFill (Serializer *serializer)=0
 
void WriteAndMeasureAlloc (Serializer *serializer)
 
void WriteAndMeasureFill (Serializer *serializer)
 
const char * name () const
 
intptr_t cid () const
 
bool is_canonical () const
 
bool is_immutable () const
 
intptr_t size () const
 
intptr_t num_objects () const
 
intptr_t target_memory_size () const
 
- 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)
 

Additional Inherited Members

- Static Public Attributes inherited from dart::SerializationCluster
static constexpr intptr_t kSizeVaries = -1
 
- Protected Attributes inherited from dart::SerializationCluster
const char *const name_
 
const intptr_t cid_
 
const intptr_t target_instance_size_
 
const bool is_canonical_
 
const bool is_immutable_
 
intptr_t size_ = 0
 
intptr_t num_objects_ = 0
 
intptr_t target_memory_size_ = 0
 

Detailed Description

Definition at line 4188 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ SubtypeTestCacheSerializationCluster()

dart::SubtypeTestCacheSerializationCluster::SubtypeTestCacheSerializationCluster ( )
inline

Definition at line 4190 of file app_snapshot.cc.

4192 "SubtypeTestCache",
4193 kSubtypeTestCacheCid,
SerializationCluster(const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)

◆ ~SubtypeTestCacheSerializationCluster()

dart::SubtypeTestCacheSerializationCluster::~SubtypeTestCacheSerializationCluster ( )
inline

Definition at line 4195 of file app_snapshot.cc.

4195{}

Member Function Documentation

◆ Trace()

void dart::SubtypeTestCacheSerializationCluster::Trace ( Serializer s,
ObjectPtr  object 
)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 4197 of file app_snapshot.cc.

4197 {
4198 SubtypeTestCachePtr cache = SubtypeTestCache::RawCast(object);
4199 objects_.Add(cache);
4200 s->Push(cache->untag()->cache_);
4201 }
void Add(const T &value)
static ObjectPtr RawCast(ObjectPtr obj)
Definition: object.h:325
struct MyStruct s
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia Filters out all Skia trace event categories except those that are specified in this comma separated list dump skp on shader Automatically dump the skp that triggers new shader compilations This is useful for writing custom ShaderWarmUp to reduce jank By this is not enabled to reduce the overhead purge persistent cache
Definition: switches.h:191

◆ WriteAlloc()

void dart::SubtypeTestCacheSerializationCluster::WriteAlloc ( Serializer s)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 4203 of file app_snapshot.cc.

4203 {
4204 const intptr_t count = objects_.length();
4205 s->WriteUnsigned(count);
4206 for (intptr_t i = 0; i < count; i++) {
4207 SubtypeTestCachePtr cache = objects_[i];
4208 s->AssignRef(cache);
4209 }
4210 }
int count
Definition: FontMgrTest.cpp:50
intptr_t length() const

◆ WriteFill()

void dart::SubtypeTestCacheSerializationCluster::WriteFill ( Serializer s)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 4212 of file app_snapshot.cc.

4212 {
4213 const intptr_t count = objects_.length();
4214 for (intptr_t i = 0; i < count; i++) {
4215 SubtypeTestCachePtr cache = objects_[i];
4217 WriteField(cache, cache_);
4218 s->Write<uint32_t>(cache->untag()->num_inputs_);
4219 s->Write<uint32_t>(cache->untag()->num_occupied_);
4220 }
4221 }
#define AutoTraceObject(obj)
#define WriteField(obj, field)

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