rename profiling event
(cherry picked from commit fcaed3c4a23e6396a1c0db8aa8f75bffc2e56024)
This commit is contained in:
@@ -3851,18 +3851,18 @@ do
|
||||
local FSPAT = "%s*"..(gsub(gsub(FOREIGN_SERVER_LABEL, "^%s", ""), "[%*()]", "%%%1")).."$"
|
||||
|
||||
local function nameplateShow(self)
|
||||
Private.StartProfileSystem("nameplatetrigger")
|
||||
Private.StartProfileSystem("generictrigger watch nameplate")
|
||||
local name = gsub(self.nameText:GetText() or "", FSPAT, "")
|
||||
visibleNameplates[self] = name
|
||||
Private.ScanEvents("NP_SHOW", self, name)
|
||||
Private.StopProfileSystem("nameplatetrigger")
|
||||
Private.StopProfileSystem("generictrigger watch nameplate")
|
||||
end
|
||||
|
||||
local function nameplateHide(self)
|
||||
Private.StartProfileSystem("nameplatetrigger")
|
||||
Private.StartProfileSystem("generictrigger watch nameplate")
|
||||
visibleNameplates[self] = nil
|
||||
Private.ScanEvents("NP_HIDE", self, gsub(self.nameText:GetText() or "", FSPAT, ""))
|
||||
Private.StopProfileSystem("nameplatetrigger")
|
||||
Private.StopProfileSystem("generictrigger watch nameplate")
|
||||
end
|
||||
|
||||
local function findNewPlate(...)
|
||||
@@ -3884,9 +3884,9 @@ do
|
||||
if lastUpdate < 1 then return end
|
||||
numChildren = WorldGetNumChildren(WorldFrame)
|
||||
if lastChildern ~= numChildren then
|
||||
Private.StartProfileSystem("nameplatetrigger")
|
||||
Private.StartProfileSystem("generictrigger watch nameplate")
|
||||
findNewPlate(WorldGetChildren(WorldFrame))
|
||||
Private.StopProfileSystem("nameplatetrigger")
|
||||
Private.StopProfileSystem("generictrigger watch nameplate")
|
||||
lastChildern = numChildren
|
||||
end
|
||||
lastUpdate = 0
|
||||
|
||||
Reference in New Issue
Block a user