.. tostring(model))
end
- local toDecorate = model
+ local toDecorate = getmetatable(model)
while not rawget(toDecorate, name) do
toDecorate = getmetatable(toDecorate)
hint = ' '
else
if profiler.color then
- hint = ' '
+ hint = ' ' .. profiler.colors('red')
else
- hint = '*'
+ hint = '* '
end
- hint = hint .. profiler.colors('red')
end
- print(profiler.timingString(indent .. hint .. ' ' .. model.__typename,
+ print(profiler.timingString(indent .. hint .. model.__typename,
localTotal, nbSamples, totalTime))
for l, t in pairs(model.accTime) do