mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
a3ab429129
Allocator.h is included into almost everything (via PODArray.h), so keep only small part of MemoryTracker.h for it.
12 lines
267 B
C++
12 lines
267 B
C++
#pragma once
|
|
|
|
#include <common/types.h>
|
|
|
|
/// Convenience methods, that use current thread's memory_tracker if it is available.
|
|
namespace CurrentMemoryTracker
|
|
{
|
|
void alloc(Int64 size);
|
|
void realloc(Int64 old_size, Int64 new_size);
|
|
void free(Int64 size);
|
|
}
|