Bukkit/Bukkit — pull request #387 by DerTod2 (2011-10-20 19:03:51+00:00)
Title: Simple Plugin Listener Debugger

With this Pull request Server Admins can check which plugin needs the longest time to execute a Listener Event.

Example:
/debug on
~ Wait 5 Seconds
/debug out [PluginName] (In this example 'WorldEdit')

Example Console Output:
20:57:51 [INFO] Debug Informations (WorldEdit):
20:57:51 [INFO] WorldEdit: 82.390.521ns
20:57:51 [INFO] -> PLAYER_JOIN: 81.501.488 (99%)
20:57:51 [INFO] -> PLAYER_QUIT: 889.033 (1%)
20:57:51 [INFO] ----------------------
20:57:51 [INFO] Total: (1 Plugins) 82.390.521ns
20:57:51 [INFO] Used Listener events: 2
20:57:51 [INFO] Debug Running Time: 6.221.674.986ns