71template <
typename EventType>
90#if defined(CPPGC_YOUNG_GENERATION)
94 double collection_rate_cpp_in_percent = -1.0;
95 double efficiency_cpp_in_bytes_per_us = -1.0;
96 double main_thread_efficiency_cpp_in_bytes_per_us = -1.0;
180 bool IsEmpty()
const {
return id_ == kEmptyId; }
187 friend class ::v8::Context;
188 friend class ::v8::internal::Isolate;
190 explicit ContextId(uintptr_t
id) : id_(id) {}
192 static constexpr uintptr_t kEmptyId = 0;
200#define ADD_MAIN_THREAD_EVENT(E) \
201 virtual void AddMainThreadEvent(const E&, ContextId) {}
211#undef ADD_MAIN_THREAD_EVENT
219#define ADD_THREAD_SAFE_EVENT(E) \
220 virtual void AddThreadSafeEvent(const E&) {}
222#undef ADD_THREAD_SAFE_EVENT
254 int64_t gc_full_atomic_wall_clock_duration_us = 0;
255 int64_t gc_full_incremental_wall_clock_duration_us = 0;
256 int64_t gc_young_wall_clock_duration_us = 0;
258 int64_t v8_execute_us = 0;
static V8_INLINE void IncrementLongTasksStatsCounter(v8::Isolate *isolate)
static const ContextId Empty()
bool operator!=(const ContextId &other) const
bool operator==(const ContextId &other) const
virtual ~Recorder()=default
static MaybeLocal< Context > GetContext(Isolate *isolate, ContextId id)
static ContextId GetContextId(Local< Context > context)
virtual void NotifyIsolateDisposal()
std::vector< EventType > events
int64_t incremental_marking_start_stop_wall_clock_duration_in_us
double efficiency_in_bytes_per_us
GarbageCollectionSizes objects
GarbageCollectionPhases main_thread_incremental
GarbageCollectionPhases main_thread_atomic_cpp
GarbageCollectionPhases total
GarbageCollectionPhases main_thread
double collection_rate_cpp_in_percent
GarbageCollectionPhases main_thread_incremental_cpp
GarbageCollectionPhases main_thread_cpp
GarbageCollectionSizes memory_cpp
double main_thread_efficiency_in_bytes_per_us
GarbageCollectionPhases total_cpp
GarbageCollectionPhases main_thread_atomic
double efficiency_cpp_in_bytes_per_us
double main_thread_efficiency_cpp_in_bytes_per_us
GarbageCollectionSizes objects_cpp
double collection_rate_in_percent
GarbageCollectionSizes memory
int64_t cpp_wall_clock_duration_in_us
int64_t wall_clock_duration_in_us
int64_t cpp_wall_clock_duration_in_us
int64_t wall_clock_duration_in_us
int64_t weak_wall_clock_duration_in_us
int64_t total_wall_clock_duration_in_us
int64_t sweep_wall_clock_duration_in_us
int64_t mark_wall_clock_duration_in_us
int64_t compact_wall_clock_duration_in_us
int64_t total_wall_clock_duration_in_us
double efficiency_in_bytes_per_us
int64_t main_thread_wall_clock_duration_in_us
double main_thread_efficiency_in_bytes_per_us
double collection_rate_in_percent
static V8_INLINE void Reset(Isolate *isolate)
static LongTaskStats Get(Isolate *isolate)
size_t liftoff_bailout_count
WasmModuleCompiled()=default
WasmModuleCompiled(bool async, bool streamed, bool cached, bool deserialized, bool lazy, bool success, size_t code_size_in_bytes, size_t liftoff_bailout_count, int64_t wall_clock_duration_in_us)
size_t code_size_in_bytes
int64_t wall_clock_duration_in_us
WasmModuleDecoded()=default
WasmModuleDecoded(bool async, bool streamed, bool success, size_t module_size_in_bytes, size_t function_count, int64_t wall_clock_duration_in_us)
size_t module_size_in_bytes
int64_t wall_clock_duration_in_us
size_t imported_function_count
int64_t wall_clock_duration_in_us
#define ADD_MAIN_THREAD_EVENT(E)
#define ADD_THREAD_SAFE_EVENT(E)