diff --git a/Plater_ChangeLog.lua b/Plater_ChangeLog.lua index 035c0f1d..f9ab7399 100644 --- a/Plater_ChangeLog.lua +++ b/Plater_ChangeLog.lua @@ -8,6 +8,10 @@ function Plater.GetChangelogTable() if (not Plater.ChangeLogTable) then Plater.ChangeLogTable = { + {1734100705, "Backend Change", "Dec 19th, 2024", "Framework updates.", "Terciob"}, + {1735420632, "Backend Change", "Dec 18th, 2024", "Retail TOC update.", "cont1nuity"}, + {1735420632, "New Feature", "Dec 18th, 2024", "Adding Blizzard addon profiling information to profiler.", "cont1nuity"}, + {1734100705, "Bug Fix", "Dec 4th, 2024", "Reset Boss-Mod integration icon glow properly.", "cont1nuity"}, {1734100705, "Backend Change", "Dec 13th, 2024", "Framework updates.", "Terciob"}, {1734100705, "Bug Fix", "Dec 4th, 2024", "Fixing an issue with spell-name truncation.", "cont1nuity"}, diff --git a/Plater_Profiling.lua b/Plater_Profiling.lua index 8bd36fbf..63c022d8 100644 --- a/Plater_Profiling.lua +++ b/Plater_Profiling.lua @@ -633,13 +633,17 @@ local function getAdvancedPerfData() printStrHeader = printStrHeader .. "\n\n" .. PRT_INDENT .. "Overall Addon Metrics:\n" for _, metric in pairs(addonMetricsNames) do currentMetrics.global[metric] = C_AddOnProfiler.GetOverallMetric(Enum.AddOnProfilerMetric[metric]) - printStrHeader = printStrHeader .. PRT_INDENT .. PRT_INDENT .. metric .. ": " .. roundTime(currentMetrics.global[metric]) .. "\n" + if currentMetrics.global[metric] > 0 then + printStrHeader = printStrHeader .. PRT_INDENT .. PRT_INDENT .. metric .. ": " .. roundTime(currentMetrics.global[metric]) .. "\n" + end end printStrHeader = printStrHeader .. "\n\n" .. PRT_INDENT .. "Plater Addon Metrics:\n" for _, metric in pairs(addonMetricsNames) do currentMetrics.Plater[metric] = C_AddOnProfiler.GetAddOnMetric(addonId, Enum.AddOnProfilerMetric[metric]) - printStrHeader = printStrHeader .. PRT_INDENT .. PRT_INDENT .. metric .. ": " .. roundTime(currentMetrics.Plater[metric]) .. " (" .. roundPercent(currentMetrics.Plater[metric]/currentMetrics.global[metric]*100) .. "%)\n" + if currentMetrics.Plater[metric] > 0 then + printStrHeader = printStrHeader .. PRT_INDENT .. PRT_INDENT .. metric .. ": " .. roundTime(currentMetrics.Plater[metric]) .. " (" .. roundPercent(currentMetrics.Plater[metric]/currentMetrics.global[metric]*100) .. "%)\n" + end end local profilingMetrics = {} @@ -649,13 +653,17 @@ local function getAdvancedPerfData() printStrHeader = printStrHeader .. "\n\n" .. PRT_INDENT .. "Overall Addon Metrics:\n" for _, metric in pairs(addonMetricsNamesForSession) do profilingMetrics.global[metric] = addonMetricsAtEnd.global[metric] - addonMetricsAtStart.global[metric] - printStrHeader = printStrHeader .. PRT_INDENT .. PRT_INDENT .. metric .. ": " .. roundTime(profilingMetrics.global[metric]) .. "\n" + if profilingMetrics.global[metric] > 0 then + printStrHeader = printStrHeader .. PRT_INDENT .. PRT_INDENT .. metric .. ": " .. roundTime(profilingMetrics.global[metric]) .. "\n" + end end printStrHeader = printStrHeader .. "\n\n" .. PRT_INDENT .. "Plater Addon Metrics:\n" for _, metric in pairs(addonMetricsNamesForSession) do profilingMetrics.Plater[metric] = addonMetricsAtEnd.Plater[metric] - addonMetricsAtStart.Plater[metric] - printStrHeader = printStrHeader .. PRT_INDENT .. PRT_INDENT .. metric .. ": " .. roundTime(profilingMetrics.Plater[metric]) .. " (" .. roundPercent(profilingMetrics.Plater[metric]/profilingMetrics.global[metric]*100) .. "%)\n" + if profilingMetrics.Plater[metric] > 0 then + printStrHeader = printStrHeader .. PRT_INDENT .. PRT_INDENT .. metric .. ": " .. roundTime(profilingMetrics.Plater[metric]) .. " (" .. roundPercent(profilingMetrics.Plater[metric]/profilingMetrics.global[metric]*100) .. "%)\n" + end end end