promotional bannermobile promotional banner

EventTimer

Records how long event handlers take to execute.

EventTimer records the time used by each event handler in each mod. The data is automatically logged when the game shuts down and when the commands "eventtimer log" or "eventtimerclient log" are run.

 

Log file

The data is logged to "eventtimer.csv". This is a CSV file, which is, essentially, a text file where data is stored in multiple comma-separated columns. It can be opened in a normal text editor or a spreadsheet program, such as LibreOffice Calc or Microsoft Excel.

 

The file has the following format:

Mod id,Event handler,Count,Total time (ns),Total time (ms)
forge,ASM: net.minecraftforge.common.ForgeInternalHandler@5816fd13 checkSettings(Lnet/minecraftforge/fml/common/gameevent/TickEvent$ClientTickEvent:)V,4658,19807885,19
misctweaks,ASM: coolsquid.misctweaks.handler.ModEventHandler@706b5d5e onStarve(Lnet/minecraftforge/event/entity/living/LivingAttackEvent:)V,2414,8042152,8

A complete example may be found here.

 

Commands

EventTimer provides two commands, both of which dump the data to the log.

  • /eventtimer is available in local worlds and in multiplayer worlds where the user is an OP. If used on a server, it affects the server, not the client.
    • /eventtimer log
    • /eventtimer reset
  • /eventtimerclient is only available in multiplayer worlds. It affects the client, not the server.

The EventTimer Team

profile avatar
  • 9
    Followers
  • 15
    Projects
  • 8.0M
    Downloads

More from CoolSquidView all

  • ToxicRain project image

    ToxicRain

    • 566.8K
    • Mods

    Poisonous rain

    • 566.8K
    • January 11, 2020
    • Mods
  • HungerTweaker project image

    HungerTweaker

    • 1.0M
    • Mods

    Modify food and hunger-related properties with ZenScript (CraftTweaker).

    • 1.0M
    • September 23, 2019
    • Mods
    • +1
  • LogFilters project image

    LogFilters

    • 45.6K
    • Mods

    Remove bloated log messages

    • 45.6K
    • May 16, 2019
    • Mods
  • MiscTweaks_ project image

    MiscTweaks_

    • 681.7K
    • Mods

    Set default world options, time & weather, resize chests, modify fire sources & fire tick rate, disable sleep & spawn points, limit some client options, etc.

    • 681.7K
    • May 10, 2019
    • Mods
  • ToxicRain project image

    ToxicRain

    • 566.8K
    • Mods

    Poisonous rain

    • 566.8K
    • January 11, 2020
    • Mods
  • HungerTweaker project image

    HungerTweaker

    • 1.0M
    • Mods

    Modify food and hunger-related properties with ZenScript (CraftTweaker).

    • 1.0M
    • September 23, 2019
    • Mods
    • +1
  • LogFilters project image

    LogFilters

    • 45.6K
    • Mods

    Remove bloated log messages

    • 45.6K
    • May 16, 2019
    • Mods
  • MiscTweaks_ project image

    MiscTweaks_

    • 681.7K
    • Mods

    Set default world options, time & weather, resize chests, modify fire sources & fire tick rate, disable sleep & spawn points, limit some client options, etc.

    • 681.7K
    • May 10, 2019
    • Mods