Is it possible to measure Plugin performance?

Discussion in 'Bukkit Discussion' started by Sapd, Dec 17, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Sapd

    Hello,
    is there any way to measure plugin performance?
    I think this would be very useful for many server hoster & plugin writer.

    I don't know how the bukkit server works, and i can't programm in Java, but wouldn't it be possible to measure the deltatime between the plugin updates for example like that:

    Code:
    float timebefore = getTime();
    pluginUpdate();
    float timeafter = getTime();
    
    float deltaTime = timeafter-timebefore;
    So we can get a feedback how much performance a plugin is wasting?
     
  2. Offline

    Afforess

    Sure you can. I've done it privately for one server. You need a modified build of Bukkit, but you can measure the time events take, per plugin.
     
Thread Status:
Not open for further replies.

Share This Page