0.9.8.10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
home
doug
src
hypertable
src
cc
Hypertable
RangeServer
CellCacheAllocator.cc
Go to the documentation of this file.
1
20
#include "
Common/Compat.h
"
21
// Global.h cannot be used in headers as it'll cause circular inclusion
22
#include "
Global.h
"
23
24
namespace
Hypertable
{
25
26
void
*
CellCachePageAllocator::allocate
(
size_t
sz) {
27
Global::memory_tracker
->
add
(sz);
28
return
std::malloc(sz);
29
}
30
31
void
CellCachePageAllocator::freed
(
size_t
sz) {
32
Global::memory_tracker
->
subtract
(sz);
33
}
34
35
}
// namespace Hypertable
Global.h
Hypertable::Global::memory_tracker
static Hypertable::MemoryTracker * memory_tracker
Definition:
Global.h:94
Hypertable::CellCachePageAllocator::freed
void freed(size_t sz)
Definition:
CellCacheAllocator.cc:31
Compat.h
Compatibility Macros for C/C++.
Hypertable::CellCachePageAllocator::allocate
void * allocate(size_t sz)
Definition:
CellCacheAllocator.cc:26
Hypertable
Hypertable definitions
Definition:
ApplicationHandler.h:36
Hypertable::MemoryTracker::subtract
void subtract(int64_t amount)
Subtract to memory used.
Definition:
MemoryTracker.h:60
Hypertable::MemoryTracker::add
void add(int64_t amount)
Add to memory used.
Definition:
MemoryTracker.h:53
Generated on Tue Dec 22 2015 18:43:15 for Hypertable by
1.8.8