RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

cdefDebugDraw ReferencecdefGpuMesh ReferencecdefImgui ReferencecdefMath Referencecdefs ReferencecontrolSystems Referencecsvlib ReferencedelayLine Referencedequeue ReferencedevUtils ReferenceEvent Referenceextensions Referencefilters Referencegraphpath Referenceguihooks ReferenceinputFilters ReferenceinterpolatedMap Referenceintrospection ReferencejbeamWriter Referencejson-ast Referencejson ReferencejsonDebug ReferencejsonPrettyEncoderCustom Referencekdtreebox2d Referencekdtreebox3d Referencekdtreepoint3d Referencelpack ReferenceluaBinding ReferenceluaCore ReferenceluaProfiler Referencemathlib Referenceparticles Referencequadtree Referencesettings ReferencetcpServer ReferencetimeEvents Referenceutils Reference
calltracer ReferencedateUtils ReferencedebugDraw Referencefilterchain Referenceutils/ - Utility Modulesheatmap ReferencehttpJsonServer ReferenceinteractiveShell ReferencelanguageMap Referenceperf Referencepixellib ReferencesimpleHttpServer ReferencetorqueScriptParser ReferencewsUtils Reference
simpleProfiler/report Reference

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferencecommonutilssimpleProfiler

simpleProfiler/report Reference

Module defined in `lua/common/utils/simpleProfiler/report.lua`. Generates flame chart HTML reports from profiling data using Mustache templates.

Module defined in lua/common/utils/simpleProfiler/report.lua. Generates flame chart HTML reports from profiling data using Mustache templates.


Exports

Functions

M.createReport(filebasename, reportTitle, meta)

Generate a flame chart / HTML report from profiling data.

  • Parameters:
    • filebasename - string - Base filename for output (without extension)
    • reportTitle - string - Title displayed in the report
    • meta - table - Metadata and profiling data to render
  • Returns: self (module table, for chaining)

Internal Notes

  • Uses lustache (Mustache) templating library for HTML generation
  • Generates interactive flame chart visualizations
  • Part of the simpleProfiler subsystem

wsUtils Reference

Module defined in `lua/common/utils/wsUtils.lua`. WebSocket server creation and management utilities using BeamNG's `BNGWebWSServer` API.

bananabench-async Reference

Script defined in `lua/console/bananabench-async.lua`. Async/coroutine-based variant of the bananabench physics benchmark. Uses `coroutine.yield()` during physics steps to allow frame-by-frame executi

On this page

ExportsFunctionsM.createReport(filebasename, reportTitle, meta)Internal Notes