Code Monkey home page Code Monkey logo

eventtracker's Introduction

Event Tracker

Using this addon you can view detailed information about the events that are triggered by the game.

Detailed information such as arguments of the event's payload for the tracked events/functions are displayed. You can also see which frames are monitoring specific events.

You can also track function calls to see time spent during the execution of the function (on a call per call base as well as the total execution time).

You have two options to track standard WoW events

  1. Update the file EventTracker_events.lua yourself. The following is an example of how the contents of the file may look like.
-- Events to be tracked
    ET_TRACKED_EVENTS = {
        "PLAYER_LEVEL_UP",
        "PLAYER_XP_UPDATE",
        "PLAYER_TARGET_CHANGED",
        "UNIT_HEALTH",
    };

-- Events to be ignored (applied when using /et registerall)
    ET_IGNORED_EVENTS = {
        "BAG_UPDATE_COOLDOWN",
        "ACTIONBAR_UPDATE_COOLDOWN",
        "UNIT_POWER_FREQUENT",
    }
  1. Add an even using the in-game slash command /et add <event>. Events added this way will not persist between log-in sessions.

Be careful to specify only valid events.

Event Tracker uses the function GetFramesRegisteredForEvent(), which will cause WoW to hard crash when it is being called with a non-existing event.

Slash commands

The following slash commands are available:

Command Description
/et open or /et close Show/hide EventTracker window
/et ? or /et help Show this list of commands
/et add <event> Add event to be tracked
/et remove <event> Remove event to be tracked
/et registerall Register all events to be tracked (# of events not known)
/et unregisterall Unregister all events to be tracked (except for VARIABLES_LOADED)
/et resetpos Reset position of the main EventTracker frame
/et filter Adds a filter to showed events (sub-string search, no regexp) - Requires registerall to be active
/et removefilter Remove filter

Notice

This project was abandoned since 2016 and I just took over it. My goal is to keep it working under retail version.

If you have issues with under clients (such as WOTLK), please submit a PR on github issues.

eventtracker's People

Contributors

spamwax avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

eventtracker's Issues

Hosting on Curse/WoWInterface/...

Is there any chance of this being hosted on some popular platform, like Curse or WoWInterface? I like this addon, but it would be great to be able to auto-update it =-)

Modifying EventTracker_events.lua for ignored events doesn't work

Environments:
WOW version 10.0.2, addon version 4.4.2

Steps to reproduce the bug:

  1. Have EventTracker_events.lua as following:
--[[ =================================================================
    Description:
        Use this file to specify which events need to be tracked.
    ================================================================= --]]

-- Events to be tracked
    ET_TRACKED_EVENTS = {
        "PLAYER_STARTED_MOVING",
        "PLAYER_XP_UPDATE",
        -- "UPDATE_MOUSEOVER_UNIT",
        -- "CHAT_MSG_GUILD",
        -- "PLAYERREAGENTBANKSLOTS_CHANGED",
        "UNIT_COMBAT",
        --@end-debug
    };

-- Events to be ignored (applied when using /registerall)
    ET_IGNORED_EVENTS = {
        "BAG_UPDATE_COOLDOWN",
        "ACTIONBAR_UPDATE_COOLDOWN",
        "SPELL_UPDATE_COOLDOWN",
        "CRITERIA_UPDATE",
        "UPDATE_MOUSEOVER_UNIT",
        "WORLD_CURSOR_TOOLTIP_UPDATE",
        "CURSOR_CHANGED",
        "PLAYER_STARTED_TURNING",
        "PLAYER_STOPPED_TURNING",
        "MODIFIER_STATE_CHANGED",
        "SPELL_ACTIVATION_OVERLAY_HIDE",
        "SPELL_UPDATE_USABLE",
        "GLOBAL_MOUSE_DOWN",
        "GLOBAL_MOUSE_UP",
        "UNIT_POWER_UPDATE",
        "UNIT_POWER_FREQUENT",
        "COMBAT_LOG_EVENT_UNFILTERED",
        "UPDATE_UI_WIDGET",
        "COMPANION_UPDATE",
        "CHAT_MSG_ADDON",
    };
  1. In game, /et to open UI
  2. /et registerall

What happens:
Addon still shows events that are meant to be ignored such as "GLOBAL_MOUSE_DOWN", "GLOBAL_MOUSE_UP", etc.

Expected Addon Behavior:
Addon ignores events listed in ET_IGNORED_EVENTS table

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.