5#ifndef INCLUDE_V8_STATISTICS_H_
6#define INCLUDE_V8_STATISTICS_H_
71 context_sizes_in_bytes,
72 size_t unattributed_size_in_bytes) = 0;
84 static std::unique_ptr<MeasureMemoryDelegate>
Default(
101 return read_only_space_physical_size_;
105 size_t read_only_space_size_;
106 size_t read_only_space_used_size_;
107 size_t read_only_space_physical_size_;
110 friend class internal::ReadOnlyHeap;
143 size_t total_heap_size_;
144 size_t total_heap_size_executable_;
145 size_t total_physical_size_;
146 size_t total_available_size_;
147 size_t used_heap_size_;
148 size_t heap_size_limit_;
149 size_t malloced_memory_;
150 size_t external_memory_;
151 size_t peak_malloced_memory_;
152 bool does_zap_garbage_;
153 size_t number_of_native_contexts_;
154 size_t number_of_detached_contexts_;
155 size_t total_global_handles_size_;
156 size_t used_global_handles_size_;
172 const char* space_name_;
174 size_t space_used_size_;
175 size_t space_available_size_;
176 size_t physical_space_size_;
190 const char* object_type_;
191 const char* object_sub_type_;
192 size_t object_count_;
207 size_t code_and_metadata_size_;
208 size_t bytecode_and_metadata_size_;
209 size_t external_script_source_size_;
210 size_t cpu_profiler_metadata_size_;
size_t bytecode_and_metadata_size()
size_t external_script_source_size()
size_t code_and_metadata_size()
size_t cpu_profiler_metadata_size()
const char * object_type()
const char * object_sub_type()
size_t physical_space_size()
const char * space_name()
size_t space_available_size()
size_t total_heap_size_executable()
size_t number_of_detached_contexts()
size_t does_zap_garbage()
size_t peak_malloced_memory()
size_t number_of_native_contexts()
size_t used_global_handles_size()
size_t total_global_handles_size()
size_t total_available_size()
size_t total_physical_size()
virtual bool ShouldMeasure(Local< Context > context)=0
static std::unique_ptr< MeasureMemoryDelegate > Default(Isolate *isolate, Local< Context > context, Local< Promise::Resolver > promise_resolver, MeasureMemoryMode mode)
virtual void MeasurementComplete(const std::vector< std::pair< Local< Context >, size_t > > &context_sizes_in_bytes, size_t unattributed_size_in_bytes)=0
virtual ~MeasureMemoryDelegate()=default
size_t read_only_space_physical_size()
size_t read_only_space_size()
size_t read_only_space_used_size()