Revert change to report function
parent
5fee51a150
commit
f21b5aedd5
11
init.lua
11
init.lua
|
@ -250,9 +250,16 @@ function advprofiler.get_report_columns(rep)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function t1000(t)
|
||||||
|
return t and t*1000 or 0
|
||||||
|
end
|
||||||
|
|
||||||
function advprofiler.report(rep)
|
function advprofiler.report(rep)
|
||||||
local colt = advprofiler.get_report_columns(rep)
|
return string.format("Count avg=%d\tmax=%d\ttotal=%d\tTime avg=%dms\tmax=%dms\ttotal=%dms\tPer-Call avg=%dms\tmax=%dms",
|
||||||
return table.concat(colt, "\t")
|
rep.count_avg, rep.count_max, rep.count_tot,
|
||||||
|
t1000(rep.time_avg), t1000(rep.time_max), t1000(rep.time_tot),
|
||||||
|
t1000(rep.per_call_avg), t1000(rep.per_call_max))
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue