#include "src/heap/memory-balancer.h"
#include "src/heap/heap-inl.h"
#include "src/heap/heap.h"
namespace v8 {
namespace internal {
MemoryBalancer::MemoryBalancer(Heap* heap, base::TimeTicks startup_time)
: … { … }
void MemoryBalancer::RecomputeLimits(size_t embedder_allocation_limit,
base::TimeTicks time) { … }
void MemoryBalancer::RefreshLimit() { … }
void MemoryBalancer::UpdateGCSpeed(size_t major_gc_bytes,
base::TimeDelta major_gc_duration) { … }
void MemoryBalancer::UpdateAllocationRate(
size_t major_allocation_bytes, base::TimeDelta major_allocation_duration) { … }
void MemoryBalancer::HeartbeatUpdate() { … }
void MemoryBalancer::PostHeartbeatTask() { … }
HeartbeatTask::HeartbeatTask(Isolate* isolate, MemoryBalancer* mb)
: … { … }
void HeartbeatTask::RunInternal() { … }
}
}