Skip to content

Commit

Permalink
Revert "little bit of magic"
Browse files Browse the repository at this point in the history
This reverts commit d93c674.
  • Loading branch information
kodewdle committed Nov 30, 2024
1 parent 687b1b1 commit 5afbf9d
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions ElvUI_Libraries/Core/oUF/simpy/profiler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,10 @@ _info.funcs = _funcs
_info.data = _data
_info.fps = _fps

local depth = 0
local Debug = function(num, start)
depth = depth + num

if num == -1 and (depth % 2 == 1) then
return start
else
return debugprofilestop()
end
end

local Profile = function(func, ...)
local start = Debug(1)
local start = debugprofilestop()
local args = { func(...) }
local finish = Debug(-1, start) - start
local finish = debugprofilestop() - start

return start, finish, args
end
Expand Down

0 comments on commit 5afbf9d

Please sign in to comment.