Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --concommand.Add("hooks_dump_benchmark", function()
- local benchmark = table.Copy(hook.GetBenchmark())
- local new = {}
- for event, hooks in pairs(benchmark) do
- for name, data in pairs(hooks) do
- local info = debug.getinfo(hook.GetTable()[event][name])
- data.event = event
- data.source = info.short_src
- data.line_defined = info.linedefined
- table.insert(new, data)
- end
- end
- table.SortByMember(new, "average")
- --table.SortByMember(new, "time")
- PrintTable(new)
- --end)
Advertisement
Add Comment
Please, Sign In to add comment