Mercurial > prosody-modules
view mod_log_events_by_memory/README.markdown @ 3616:c0bc97c0ba61
mod_log_events_by_cpu_usage: Log events where more than a certain amount of CPU time was spent
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Jun 2019 15:23:52 +0200 |
parents | 5fe34e5f9829 |
children | 61b9c89db212 |
line wrap: on
line source
This module compares the memory usage reported by Lua before and after each event and reports it to the log if it exceeds the configuration setting `log_memory_threshold` (in bytes). ``` lua log_memory_threshold = 20*1024 ```