proxygen
|
#include <folly/experimental/JemallocNodumpAllocator.h>
#include <folly/io/IOBuf.h>
#include <folly/memory/Malloc.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
TEST (JemallocNodumpAllocatorTest, Basic) | |
TEST (JemallocNodumpAllocatorTest, IOBuf) | |
TEST | ( | JemallocNodumpAllocatorTest | , |
Basic | |||
) |
Definition at line 23 of file JemallocNodumpAllocatorTest.cpp.
References folly::JemallocNodumpAllocator::allocate(), folly::JemallocNodumpAllocator::deallocate(), EXPECT_NE, folly::JemallocNodumpAllocator::getArenaIndex(), ptr, and folly::usingJEMalloc().
TEST | ( | JemallocNodumpAllocatorTest | , |
IOBuf | |||
) |
Definition at line 37 of file JemallocNodumpAllocatorTest.cpp.
References folly::JemallocNodumpAllocator::allocate(), folly::IOBuf::capacity(), data, folly::IOBuf::data(), EXPECT_EQ, EXPECT_NE, folly::JemallocNodumpAllocator::getArenaIndex(), i, ptr, folly::size(), folly::IOBuf::TAKE_OWNERSHIP, uint8_t, folly::usingJEMalloc(), and folly::IOBuf::writableData().