Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1379:403d5cd924eb
mod_statistics_mem: Module that collects memory usage stats from /proc
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 03 Apr 2014 20:57:22 +0200 |
| parents | aa371405db34 |
| children | 4557ac5c205d |
line wrap: on
line source
-- Provides total CPU time, useful for DERIVE module:provides("statistics", { statistics = { cpu_total = { -- milliseconds of CPU time used get = function() return os.clock() * 1000; end } } });
