WoWInterface SVN OpenRDX

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/VFL/Profilers
    from Rev 608 to Rev 627
    Reverse comparison

Rev 608 → Rev 627

Profiler.lua
197,7 → 197,7
 
-- SUMMARY CPU/Memory PROFILING
 
local summary_update_interval = 2;
local summary_update_interval = 1;
 
--- Gets the summary update interval.
-- This is used for converting to per-second stats.
287,11 → 287,7
for i=3, #alist do
acpux = alist[i];
acpuaindex = acpux.addon_index;
--if VFLConfig.summary[alist[i].title] then
acpu = GetAddOnCPUUsage(acpuaindex) / 1000;
--else
-- acpu = 0;
--end
acpu = GetAddOnCPUUsage(acpuaindex) / 1000;
acputot = acputot + acpu;
 
acpuusage = acpu - acpux.CPU;
418,7 → 414,7
 
-- Object PROFILING
 
local object_update_interval = 3;
local object_update_interval = 1;
--- Gets the object update interval.
-- This is used for converting to per-second stats.
-- (usage per second = usage per interval * intervals per sec = upi / spi)
446,8 → 442,10
totCPU = 0; totCalls = 0; curCat = obj;
else
if obj.type == "function" then
if obj.object == nil then VFL.print("ERROR"); end
cpu, calls = GetFunctionCPUUsage(obj.object, obj.includeSubObjects);
cpu = cpu / 1000;
--VFL.print(obj.title .. ":" .. cpu);
elseif obj.type == "frame" then
cpu, calls = GetFrameCPUUsage(obj.object, obj.includeSubObjects);
cpu = cpu / 1000;
622,7 → 620,7
VFLP.RegisterCategory("VFL Profiler");
VFLP.RegisterFunc("VFL Profiler", "Mem Updater", UpdateMemorySummary, true);
VFLP.RegisterFunc("VFL Profiler", "CPU Updater", UpdateCPUSummary, true);
VFLP.RegisterFunc("VFL Profiler", "Event Updater", UpdateEventProfile, true);
--VFLP.RegisterFunc("VFL Profiler", "Event Updater", UpdateEventProfile, true);
VFLP.RegisterFunc("VFL Profiler", "Object Updater", UpdateObjProfile, true);
VFLP.RegisterFunc("VFL Profiler", "Pool Updater", UpdatePoolSummary, true);
 
697,5 → 695,7
end
end);
 
--ResetCPUUsage()
function VFLP.ResetCPU()
ResetCPUUsage()
end