Profiling lua error
MSav93 opened this issue ยท 1 comments
Game and Plater version
Retail 9.0.5
Plater-Plater-v9.0.2.327a-Retail
Describe the bug
- Steps to Reproduce (what did you do to make the bug happen):
- type "/plater profstart"
- type "/plater profstop" or "/plater profprint"
- Result (what happens when you follow the steps above):
Lua error as below and no profiling results reported
- Expected (what you think the expected behavior would be when following the steps):
profiling results reported
- When the bug started (a date, wow path release, details update, etc)?
25-3-2021 - First time I've tried using plater profiling so not sure if it occurred in earlier releases. Plater version at the top.
- Additional information:
N/A
Lua Error
Post here lua errors, if you aren't getting any, use /console scriptErrors 1
1x Plater\Plater_Profiling.lua:161: attempt to perform arithmetic on field 'totalTime' (a nil value)
[string "@Plater\Plater_Profiling.lua"]:161: in function <Plater\Plater_Profiling.lua:131>
[string "@Plater\Plater_Profiling.lua"]:203: in function `DumpPerformance'
[string "@Plater\Plater_Profiling.lua"]:56: in function `DisableProfiling'
[string "@Plater\Plater-Plater-v9.0.2.327a-Retail.lua"]:11190: in function `?'
[string "@FrameXML\ChatFrame.lua"]:5094: in function `ChatEdit_ParseText'
[string "@FrameXML\ChatFrame.lua"]:4758: in function `ChatEdit_SendText'
[string "@FrameXML\ChatFrame.lua"]:4794: in function <FrameXML\ChatFrame.lua:4790>
[string "=[C]"]: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>
Locals:
perfTable = <table> {
Plater-Core = <table> {
}
totalGlobalTime = 61887.226200
}
indent = " "
printStr = ""
sumTimePTypes = 0
sumExecPTypes = 0
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
Plater-Core = <table> {
}
Mod-RunHooks = <table> {
}
}
(for control) = "Plater-Core"
pType = "Plater-Core"
data = <table> {
Update = <table> {
}
Health = <table> {
}
Events = <table> {
}
}
pTypeTime = 324.336101
pTypeExec = 46232
pTypeSubLog = 62.625600
printStrPType = " Update - avg: 0.00837ms - count: 46232 - total: 324.3361ms - (as sub-log: 62.6256ms)
"
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
Update = <table> {
}
Health = <table> {
}
Events = <table> {
}
}
(for control) = "Update"
event = "Update"
pData = <table> {
subTypeData = <table> {
}
count = 46232
totalTime = 386.961701
subLogTime = 62.625600
}
pTypeSufTime = 0
pTypeSufExec = 0
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
CheckRange = <table> {
}
NameplateTick = <table> {
}
UpdatePlateFrame = <table> {
}
}
(for control) = "CheckRange"
subType = "CheckRange"
sufData = <table> {
curStartTime = 183913051.044100
}
(*temporary) = <table> {
}
(*temporary) = "avg: "
(*temporary) = <function> defined @Plater\Plater_Profiling.lua:15
(*temporary) = nil
(*temporary) = nil
(*temporary) = 6262560
(*temporary) = 0.536778
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on field 'totalTime' (a nil value)"
profData = <table> {
endTime = 183913059.986900
totalTimeInPlater = 435.305801
startTime = 183851172.760700
data = <table> {
}
}
roundTime = <function> defined @Plater\Plater_Profiling.lua:15
roundPercent = <function> defined @Plater\Plater_Profiling.lua:20
Screenshots
Post images of the bug if necessary.
N/A
Other Information
If necessary, add more info here.
N/A