diff --git a/src/uvw/util.hpp b/src/uvw/util.hpp index 4d7c7588..b03c3110 100644 --- a/src/uvw/util.hpp +++ b/src/uvw/util.hpp @@ -496,6 +496,14 @@ struct Utilities { uv_loadavg(avg.data()); return avg; } + + /** + * @brief Gets memory information (in bytes). + * @return Memory information. + */ + static uint64_t totalMemory() noexcept { + return uv_get_total_memory(); + } }; @@ -511,7 +519,6 @@ struct Utilities { * * uv_os_tmpdir * * uv_os_get_passwd * * uv_os_free_passwd - * * uv_get_total_memory * * uv_hrtime */