Cuberite Forum

Full Version: PluginMemory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This plugin allows you to view the amount of memory that is consumed by each plugin in the server. Either use the console command "plugmem" to see the current memory usage in the console, or have a look at the webadmin page that has per-plugin live graphs of the memory use:
[Image: pluginmemory_1.png]

Source: https://github.com/madmaxoft/PluginMemory
Download: https://github.com/madmaxoft/PluginMemor...master.zip
Just a suggestion, but if you're loading jquery for the graphs, you could use $.post, http://api.jquery.com/jquery.post/ to simplify your ajax request.
Awesome ;D I used to use my executor plugin that would execute this:
cPluginManager:Get():ForEachPlugin(
	function(a_Plugin)
		if ((a_Plugin:GetName() ~= cPluginManager:GetCurrentPlugin():GetName()) and (a_Plugin:IsLoaded())) then
			print(a_Plugin:GetName(), string.format("%.4f", cPluginManager:CallPlugin(a_Plugin:GetName(), "collectgarbage", "count") / 1024) .. "MB")
		end
	end
)

But this is much nicer ;D
I finally learnt how to make the graphs live, now we can use the same technology for PerfPages Smile
That would be great Smile