proxygen
|
#include <folly/experimental/JemallocHugePageAllocator.h>
#include <folly/container/F14Map.h>
#include <folly/memory/Malloc.h>
#include <folly/portability/GTest.h>
#include <vector>
Go to the source code of this file.
Typedefs | |
using | jha = folly::JemallocHugePageAllocator |
Functions | |
static constexpr int | kb (int kilos) |
static constexpr int | mb (int megs) |
TEST (JemallocHugePageAllocatorTest, Basic) | |
TEST (JemallocHugePageAllocatorTest, LargeAllocations) | |
TEST (JemallocHugePageAllocatorTest, MemoryUsageTest) | |
TEST (JemallocHugePageAllocatorTest, STLAllocator) | |
using jha = folly::JemallocHugePageAllocator |
Definition at line 25 of file JemallocHugePageAllocatorTest.cpp.
|
static |
Definition at line 27 of file JemallocHugePageAllocatorTest.cpp.
|
static |
Definition at line 31 of file JemallocHugePageAllocatorTest.cpp.
References kb().
Referenced by TEST().
TEST | ( | JemallocHugePageAllocatorTest | , |
Basic | |||
) |
Definition at line 35 of file JemallocHugePageAllocatorTest.cpp.
References folly::JemallocHugePageAllocator::addressInArena(), folly::JemallocHugePageAllocator::allocate(), folly::JemallocHugePageAllocator::deallocate(), EXPECT_FALSE, EXPECT_NE, EXPECT_TRUE, folly::JemallocHugePageAllocator::freeSpace(), folly::JemallocHugePageAllocator::init(), folly::JemallocHugePageAllocator::initialized(), kb(), and ptr.
TEST | ( | JemallocHugePageAllocatorTest | , |
LargeAllocations | |||
) |
Definition at line 67 of file JemallocHugePageAllocatorTest.cpp.
References folly::JemallocHugePageAllocator::addressInArena(), folly::JemallocHugePageAllocator::allocate(), folly::JemallocHugePageAllocator::deallocate(), EXPECT_EQ, EXPECT_FALSE, EXPECT_NE, EXPECT_TRUE, bm::free(), folly::JemallocHugePageAllocator::freeSpace(), folly::JemallocHugePageAllocator::init(), kb(), and mb().
TEST | ( | JemallocHugePageAllocatorTest | , |
MemoryUsageTest | |||
) |
Definition at line 122 of file JemallocHugePageAllocatorTest.cpp.
References folly::JemallocHugePageAllocator::allocate(), data, folly::JemallocHugePageAllocator::deallocate(), EXPECT_EQ, EXPECT_GE, bm::free(), folly::JemallocHugePageAllocator::freeSpace(), i, folly::JemallocHugePageAllocator::init(), kb(), mb(), folly::size(), and val.
TEST | ( | JemallocHugePageAllocatorTest | , |
STLAllocator | |||
) |
Definition at line 236 of file JemallocHugePageAllocatorTest.cpp.
References folly::JemallocHugePageAllocator::addressInArena(), EXPECT_FALSE, EXPECT_NE, EXPECT_TRUE, folly::JemallocHugePageAllocator::freeSpace(), folly::JemallocHugePageAllocator::init(), and folly::gen::move.