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.