diff --git a/cpp/src/metrics/SystemInfo.cpp b/cpp/src/metrics/SystemInfo.cpp new file mode 100644 index 0000000000..ae3884fb1e --- /dev/null +++ b/cpp/src/metrics/SystemInfo.cpp @@ -0,0 +1,7 @@ +/******************************************************************************* + * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved + * Unauthorized copying of this file, via any medium is strictly prohibited. + * Proprietary and confidential. + ******************************************************************************/ + +#include "SystemInfo.h" diff --git a/cpp/src/metrics/SystemInfo.h b/cpp/src/metrics/SystemInfo.h new file mode 100644 index 0000000000..78ae1a5672 --- /dev/null +++ b/cpp/src/metrics/SystemInfo.h @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved + * Unauthorized copying of this file, via any medium is strictly prohibited. + * Proprietary and confidential. + ******************************************************************************/ + +#pragma once + +#include "sys/types.h" +#include "sys/sysinfo.h" + + +namespace zilliz { +namespace vecwise { +namespace server { + +class SystemInfo { + private: + + public: + static SystemInfo & + GetInstance(){ + static SystemInfo instance; + return instance; + } + + long long GetPhysicalMemory(); + + + +}; + +} +} +}