File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 <DebugChannel active =" false" name =" DBG_MULTIPLAYER" text=" multiplayer" />
2222 <DebugChannel active =" true" name =" DBG_IMPLEMENTS" text=" implements" />
2323 <DebugChannel active =" false" name =" DBG_AI_DRIVER" text=" ai common" />
24- <DebugChannel active =" true " name =" DBG_PERF" text=" perf" />
24+ <DebugChannel active =" false " name =" DBG_PERF" text=" perf" />
2525</DebugChannels >
Original file line number Diff line number Diff line change 1+ --[[
2+ Profiler class to measure execution time of code blocks.
3+ Usage:
4+ local profiler = Profiler:new(vehicle, 100) -- 100 optional, the size of the moving average window
5+ profiler:start()
6+ -- code to be profiled
7+ profiler:stop()
8+ profiler:log() -- log the profiling results when DBG_PERF is enabled
9+ profiler:render() -- render the profiling results on screen when DBG_PERF is enabled
10+ ]]
111Profiler = CpObject ()
212
313function Profiler :init (vehicle , n )
You can’t perform that action at this time.
0 commit comments