BukkitInsider
BukkitInsider: inspect events and plugins. On the fly.
Version: 1.4
This quick, small and dirty plugin is able to get all event subscriptions and list them to you. Also, of particular interest is the ability to calculate average time to process a certain event.
Some technical details: it works partly because of some black magic called Reflections. I substitute Bukkit's own PluginManager with my own that is very similar to the original, but allows me to intercept all events prior to another plugins and pull out my millisecond-precise stopwatch. Please note that this may add a few nanoseconds to the bill.
As you might know, black magic doesn't like to cooperate, so if you have any other plugin that does its own sacred rituals, be aware of possible bad interaction.
Screenshot:
Commands:
- introspect - dumps information about event hooks into console. You can call it from chat though, but you won't get any output. Requires you to be an Op. Amount of imformation is just huge, you just won't see everything in that tiny Minecraft chat.
Is there any potential to update? As what i have seen this would be a great plugin!
Dennis
1.4.2 update?
@apiocera
This is actually the only plugin that can profile TASKS. I would be GREATLY appreciative if you could get it 1.2.5 ready.
:)
@ArtyomShegeda I guess it is not 1.2.5-ready. I haven't caught up with bukkit for a while, but i'll try to fix it.
Hello,
Just installed the plug-in. But i see strange response on command:
Really cool, it would be good for developers too ! ^^
@Etsija
Sorry for the long waiting :) v1.4 out :)
No update for 1.2.3 available? :(
Thanks for the update the dumpscreen looks nice. First plugins that realy allows me to inspect whats goin on in my bukkitbox.
@rbos
Just updated now. Have to wait for bukkit approval.
You can download it here : http://dl.dropbox.com/u/1773950/BukkitInsider.jar
Whoops, spoke too soon. Loaded with /plugin load, but not on restart. Doesn't work with new listener API.
For example:
Liking this plugin a lot.
I'm writing a script to generate time usage graphs by plugin, can you add an option to dump the report every 5 minutes? it'd save me a cron job.
still active for updating on new api?
@Dark_Balor
Thanks very much!! Such a useful tool, was a shame it wasn't working.
Would you be willing to release the updated source as well?
I'm having the same issue as sorklin below as well.
Thanks again!
Balor, I notice that this omits the new custom events. Old custom events (deprecated) are caught, but new custom events are not reported. Is there anyway to correct for that?
@Dark_Balor: AWESOME, thank you, you're a lifesaver! Works like a charm now.
@Etsija
For those who are interested I did a 1.1 version of that plugin (it's for now BETA) : http://dl.dropbox.com/u/1773950/BukkitInsider.jar
All the credit goes to @apiocera for his work, I only took the source code and adapted it.
Please, PLEASE update this to fix for 1.1. This plugin is gold.
I'd love to see this updated for 1.1
I would love to see the source for this, as I'm curious how you did it