mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
13 lines
329 B
C++
13 lines
329 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
/** Returns the size of physical memory (RAM) in bytes.
|
|
* Returns 0 on unsupported platform or if it cannot determine the size of physical memory.
|
|
*/
|
|
uint64_t getMemoryAmountOrZero();
|
|
|
|
/** Throws exception if it cannot determine the size of physical memory.
|
|
*/
|
|
uint64_t getMemoryAmount();
|