comparison mod_measure_malloc/mod_measure_malloc.lua @ 4761:ea1ecbc1d04d

Merge commit
author tmolitor <thilo@eightysoft.de>
date Sun, 07 Nov 2021 14:41:43 +0100
parents b9af1ccac98b
children
comparison
equal deleted inserted replaced
4760:367a8020bd92 4761:ea1ecbc1d04d
23 "gauge", "malloc_heap_returnable", "bytes", 23 "gauge", "malloc_heap_returnable", "bytes",
24 "Returnable bytes" 24 "Returnable bytes"
25 ):with_labels(); 25 ):with_labels();
26 26
27 module:hook("stats-update", function () 27 module:hook("stats-update", function ()
28 meminfo = pposix.meminfo(); 28 local meminfo = pposix.meminfo();
29 if meminfo.allocated then 29 if meminfo.allocated then
30 allocated:with_labels("sbrk"):set(meminfo.allocated); 30 allocated:with_labels("sbrk"):set(meminfo.allocated);
31 end 31 end
32 if meminfo.allocated_mmap then 32 if meminfo.allocated_mmap then
33 allocated:with_labels("mmap"):set(meminfo.allocated_mmap); 33 allocated:with_labels("mmap"):set(meminfo.allocated_mmap);