ClickHouse/src/Common/CurrentMemoryTracker.h
2021-10-02 10:13:14 +03:00

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();
}