mod_log_events_by_cpu_usage

This module logs events where more than a certain amount of CPU time was spent.

log_cpu_threshold = 0.01 -- in seconds, so this is 10 milliseconds

Uses the Lua os.clock() function to estimate CPU usage.


Installation

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