This module logs events where more than a certain amount of CPU time was spent.
= 0.01 -- in seconds, so this is 10 milliseconds log_cpu_threshold
Uses the Lua os.clock()
function to estimate CPU usage.
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_log_events_by_cpu_usage
For earlier versions see the documentation for installing 3rd party modules