mod_traceback: Hook signal via event instead of directly
Safer this way, see Prosody trunk rev 69faf3552d52
-- 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
}
}
});