Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2171:85d88ed4f2a2
mod_storage_memory: Implement 'add_keys' method of map stores (required for rosters in 0.10+)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 07 May 2016 13:37:03 +0200 |
parents | 4557ac5c205d |
children |
line wrap: on
line source
-- Provides total CPU time, useful for DERIVE module:set_global(); module:provides("statistics", { statistics = { cpu_total = { -- milliseconds of CPU time used get = function() return os.clock() * 1000; end } } });