5#ifndef INCLUDE_EXTERNAL_MEMORY_ACCOUNTER_H_
6#define INCLUDE_EXTERNAL_MEMORY_ACCOUNTER_H_
52#ifdef V8_ENABLE_MEMORY_ACCOUNTING_CHECKS
53 size_t amount_of_external_memory_ = 0;
Definition: v8-external-memory-accounter.h:23
void Decrease(Isolate *isolate, size_t size)
static int64_t GetTotalAmountOfExternalAllocatedMemoryForTesting(const Isolate *isolate)
ExternalMemoryAccounter()=default
ExternalMemoryAccounter(ExternalMemoryAccounter &&)
void Update(Isolate *isolate, int64_t delta)
ExternalMemoryAccounter(const ExternalMemoryAccounter &)=delete
ExternalMemoryAccounter & operator=(const ExternalMemoryAccounter &)=delete
ExternalMemoryAccounter & operator=(ExternalMemoryAccounter &&)
~ExternalMemoryAccounter()
void Increase(Isolate *isolate, size_t size)
Definition: v8-isolate.h:261
Definition: libplatform.h:15
#define V8_EXPORT
Definition: v8config.h:793