#include <limits>
#include "src/flags/flags.h"
#include "src/heap/memory-reducer.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
MemoryReducer::Event MarkCompactEvent(double time_ms,
bool next_gc_likely_to_collect_more,
size_t committed_memory) { … }
MemoryReducer::Event MarkCompactEventGarbageLeft(double time_ms,
size_t committed_memory) { … }
MemoryReducer::Event MarkCompactEventNoGarbageLeft(double time_ms,
size_t committed_memory) { … }
MemoryReducer::Event TimerEvent(double time_ms,
bool should_start_incremental_gc,
bool can_start_incremental_gc) { … }
MemoryReducer::Event TimerEventLowAllocationRate(double time_ms) { … }
MemoryReducer::Event TimerEventHighAllocationRate(double time_ms) { … }
MemoryReducer::Event TimerEventPendingGC(double time_ms) { … }
MemoryReducer::Event PossibleGarbageEvent(double time_ms) { … }
TEST(MemoryReducer, FromDoneToDone) { … }
TEST(MemoryReducer, FromDoneToWait) { … }
TEST(MemoryReducer, FromWaitToWait) { … }
TEST(MemoryReducer, FromWaitToRun) { … }
TEST(MemoryReducer, FromWaitToDone) { … }
TEST(MemoryReducer, FromRunToRun) { … }
TEST(MemoryReducer, FromRunToDone) { … }
TEST(MemoryReducer, FromRunToWait) { … }
}
}