ClickHouse/libs/libcommon/include/common/getMemoryAmount.h
Alexey Milovidov eb39f6b653 Cleanup #4240
2019-02-10 01:38:26 +03:00

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