mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
14 lines
318 B
C++
14 lines
318 B
C++
#pragma once
|
|
|
|
#include <base/types.h>
|
|
|
|
/// Convenience methods, that use current thread's memory_tracker if it is available.
|
|
namespace CurrentMemoryTracker
|
|
{
|
|
void alloc(Int64 size);
|
|
void allocNoThrow(Int64 size);
|
|
void realloc(Int64 old_size, Int64 new_size);
|
|
void free(Int64 size);
|
|
void check();
|
|
}
|