Software /
code /
prosody-modules
Comparison
mod_statistics/top.lua @ 1079:87a091f88a1d
mod_statistics/top.lua: Display the more detailed memory stats
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Jun 2013 21:02:48 +0100 |
parent | 1078:5f398922f0a3 |
child | 1082:6c555e7dc942 |
comparison
equal
deleted
inserted
replaced
1078:5f398922f0a3 | 1079:87a091f88a1d |
---|---|
13 top.__index = top; | 13 top.__index = top; |
14 | 14 |
15 local status_lines = { | 15 local status_lines = { |
16 "Prosody $version - $time up $up_since, $total_users users, $cpu busy"; | 16 "Prosody $version - $time up $up_since, $total_users users, $cpu busy"; |
17 "Connections: $total_c2s c2s, $total_s2sout s2sout, $total_s2sin s2sin, $total_component component"; | 17 "Connections: $total_c2s c2s, $total_s2sout s2sout, $total_s2sin s2sin, $total_component component"; |
18 "Memory: $memory_used lua, $memory_process process"; | 18 "Memory: $memory_lua lua, $memory_used used, $memory_allocated allocated, $memory_rss resident, $memory_total total"; |
19 "Stanzas in: $message_in_per_second message/s, $presence_in_per_second presence/s, $iq_in_per_second iq/s"; | 19 "Stanzas in: $message_in_per_second message/s, $presence_in_per_second presence/s, $iq_in_per_second iq/s"; |
20 "Stanzas out: $message_out_per_second message/s, $presence_out_per_second presence/s, $iq_out_per_second iq/s"; | 20 "Stanzas out: $message_out_per_second message/s, $presence_out_per_second presence/s, $iq_out_per_second iq/s"; |
21 }; | 21 }; |
22 | 22 |
23 function top:draw() | 23 function top:draw() |