Definition at line 57 of file BenchmarkSessionListener.h.
◆ Allocator()
◆ ~Allocator()
◆ allocate() [1/2]
◆ allocate() [2/2]
| void * allocate |
( |
size_t | size | ) |
|
|
inline |
Definition at line 72 of file BenchmarkSessionListener.h.
73 {
75
76 if(size > available_)
77 throwAllocatorExhausted();
78
79 void* const ptr = ptr_;
81 ptr_ = Messaging::advanceByBytes(ptr_, size);
82
83#ifdef __GNUC__
84 ::madvise(ptr, size, MADV_SEQUENTIAL);
85 ::madvise(ptr, size, MADV_WILLNEED);
86#endif
87
88 return ptr;
89 }
constexpr std::enable_if<!details::HasMemberTraits< Value >::value, size_t >::type size() noexcept