Debug Summary additions

Posted by Bast on Sat 27 Aug 2011 10:14 PM — 4 posts, 18,137 views.

#0
Can we get a couple of things added to the Debug summary.

The total time that mushclient has been running
If you can get to it, how much memory MUSH thinks it is using
Also, how much memory each plugin is using

Anyone else want to add something?
Australia Forum Administrator #1
The memory stuff is quite hard to do. However I added some durations to the next version.
USA Global Moderator #2
The memory stuff per plugin could be gotten from Lua...uhh...maybe. Depending on how accurate the garbage collector's memory report is.
#3
Yeah. All my plugins report it. Type 'plugins' if you are using any of my stuff.

If you want memory usage for any other plugin to appear, just add this function:


function getmemoryusage()
  return collectgarbage('count')
end