3 local measure
= require
"core.statsmanager".measure
;
4 local pposix
= require
"util.pposix";
7 setmetatable(measures
, {
8 __index
= function (t
, k
)
9 local m
= measure("amount", "memory."..k
); t
[k
] = m
; return m
;
12 module
:hook("stats-update", function ()
14 for k
, v
in pairs(pposix
.meminfo()) do