# HG changeset patch # User Kim Alvefur # Date 1396551419 -7200 # Node ID aa371405db341181f915ae743ad042f255ce04d6 # Parent 92f3b4d81b525c7df1aef0665a2c1bf8377f33b1 mod_statistics_cputotal: Module that collects accumulated CPU usage statistics diff -r 92f3b4d81b52 -r aa371405db34 mod_statistics_cputotal/mod_statistics_cputotal.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_statistics_cputotal/mod_statistics_cputotal.lua Thu Apr 03 20:56:59 2014 +0200 @@ -0,0 +1,11 @@ +-- 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 + } + } +});