Skip to content

Commit

Permalink
BuffTrigger2 Multi Handler: make profiling more granular
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds authored and InfusOnWoW committed Oct 20, 2024
1 parent 3dc3951 commit 7eac9d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions WeakAuras/BuffTrigger2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4278,7 +4278,8 @@ function BuffTrigger.InitMultiAura()
end

function BuffTrigger.HandleMultiEvent(frame, event, ...)
Private.StartProfileSystem("bufftrigger2 - multi")
local system = "bufftrigger2 - multi - " .. event
Private.StartProfileSystem(system)
if event == "COMBAT_LOG_EVENT_UNFILTERED" then
CombatLog(CombatLogGetCurrentEventInfo())
elseif event == "UNIT_TARGET" then
Expand Down Expand Up @@ -4308,7 +4309,7 @@ function BuffTrigger.HandleMultiEvent(frame, event, ...)
end
wipe(matchDataMulti)
end
Private.StopProfileSystem("bufftrigger2 - multi")
Private.StopProfileSystem(system)
end

function BuffTrigger.GetTriggerDescription(data, triggernum, namestable)
Expand Down

0 comments on commit 7eac9d5

Please sign in to comment.