calltracer Reference
Module defined in `lua/common/utils/calltracer.lua`. Records function call graphs using Lua's debug hook, exports to TGF format for visualization in yEd.
Module defined in lua/common/utils/calltracer.lua. Records function call graphs using Lua's debug hook, exports to TGF format for visualization in yEd.
Exports
Functions
M.start()
Start recording function calls via debug.sethook.
M.stop()
Stop recording function calls.
M.save(filename)
Export the recorded call graph as a TGF (Trivial Graph Format) file.
- Parameters:
filename- string - Output file path (.tgf)
M.reset()
Clear all recorded call data.
Internal Notes
- Uses
debug.sethookwith "c" (call) events - Tracks caller→callee edges (presence only, no call counts)
debug.getinfoextracts source/line/name for each stack frame- TGF output compatible with yEd graph editor
TestManager Reference
Module defined in `lua/common/testFramework/TestManager.lua`. Unit test manager for BeamNG - collects test functions, executes them, logs results, and outputs JUnit XML reports.
dateUtils Reference
Module defined in `lua/common/utils/dateUtils.lua`. ISO 8601 date parsing and time difference calculations.