saveDataToCSV
Definition
-- @/lua/common/utils/perf.lua:94
local function saveDataToCSV(filename)
local d = getData()
local f = io.open(filename, "w")
if not f then return false end
table.sort(d.fcts, function(a, b) return a.s > b.s end)
f:write(";function, time\n")
for _,vv in ipairs(d.fcts) do
f:write(vv.f .. ', ' .. tostring(vv.s) .. "\n")
end
f:close()
end
Callers
@/lua/ge/extensions/util/trackBuilder/splineTrack.lua
--perf.disable()
--perf.saveDataToCSV('splineTrackPerf.csv')
-- only refresh collision if the whole track would be updated (like on drive button or quickrace.)
@/lua/common/utils/perf.lua
perf.disable()
perf.saveDataToCSV('vehicleloading.csv')