665 {
668 const bool executable = false;
669 const bool compressed = false;
670 memory_ =
672 if (memory_ == nullptr) {
674 }
675 sample_buffer_ =
reinterpret_cast<Sample*
>(memory_->
address());
676 blocks_ = new SampleBlock[blocks];
677 for (intptr_t i = 0; i < blocks; ++i) {
678 blocks_[i].
Init(&sample_buffer_[i * samples_per_block], samples_per_block);
679 }
680 capacity_ = blocks;
681 cursor_ = 0;
682}
virtual void Init(Sample *samples, intptr_t capacity)
static constexpr T RoundUp(T x, uintptr_t alignment, uintptr_t offset=0)
static intptr_t PageSize()
static VirtualMemory * Allocate(intptr_t size, bool is_executable, bool is_compressed, const char *name)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size