From 6dd2023c43ab4fc46d9bce7599e6875e4ff33957 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 26 Mar 2026 22:51:05 +0800 Subject: update more comments --- xmake/core/base/memory.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmake/core/base/memory.lua') diff --git a/xmake/core/base/memory.lua b/xmake/core/base/memory.lua index ff52658e5..5225a3c8a 100644 --- a/xmake/core/base/memory.lua +++ b/xmake/core/base/memory.lua @@ -25,6 +25,10 @@ local memory = memory or {} local os = require("base/os") -- get memory info +-- +-- @param name the specific info name (optional), e.g. "totalsize", "availsize", "usagerate" +-- @return the memory info table or specific value (sizes in bytes, usagerate in 0.0 ~ 1.0) +-- function memory.info(name) local meminfo = memory._MEMINFO local memtime = memory._MEMTIME -- cgit v1.3.1