|
proxygen
|
#include <folly/memory/ThreadCachedArena.h>#include <algorithm>#include <iterator>#include <map>#include <mutex>#include <random>#include <thread>#include <unordered_map>#include <glog/logging.h>#include <folly/Benchmark.h>#include <folly/Memory.h>#include <folly/Range.h>#include <folly/lang/Align.h>#include <folly/portability/GTest.h>Go to the source code of this file.
Functions | |
| TEST (ThreadCachedArena, BlockSize) | |
| TEST (ThreadCachedArena, SingleThreaded) | |
| TEST (ThreadCachedArena, MultiThreaded) | |
| TEST (ThreadCachedArena, ThreadCachedArenaAllocator) | |
| int | main (int argc, char *argv[]) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 266 of file ThreadCachedArenaTest.cpp.
References testing::InitGoogleTest(), RUN_ALL_TESTS(), and folly::runBenchmarks().
| TEST | ( | ThreadCachedArena | , |
| BlockSize | |||
| ) |
Definition at line 95 of file ThreadCachedArenaTest.cpp.
References folly::ThreadCachedArena::allocate(), EXPECT_LE, folly::max_align_v, and uint8_t.
| TEST | ( | ThreadCachedArena | , |
| SingleThreaded | |||
| ) |
Definition at line 116 of file ThreadCachedArenaTest.cpp.
References EXPECT_EQ, EXPECT_GT, and folly::ThreadCachedArena::totalSize().
| TEST | ( | ThreadCachedArena | , |
| MultiThreaded | |||
| ) |
Definition at line 128 of file ThreadCachedArenaTest.cpp.
References i, folly::gen::move, folly::pushmi::detail::t, and threads.
| TEST | ( | ThreadCachedArena | , |
| ThreadCachedArenaAllocator | |||
| ) |
Definition at line 155 of file ThreadCachedArenaTest.cpp.
References folly::BENCHMARK(), folly::BENCHMARK_DRAW_LINE(), EXPECT_EQ, i, and map().