sysProfileStart

Starts timing a named section of your program. Takes name (the section's name, shown in the profiler).

System

Parameters & Returns

Parameters

name String

Returns

Void

Quick Summary

Starts timing a named section of your program. Takes name (the section's name, shown in the profiler).

Technical Exegesis...

Marks the start of a section of code to time. Call sysProfileEnd with the same name at its end. The time is added up over each frame (so a section can be timed several times a frame), averaged over the last second, and shown in the profiler panel (b2dShowProfiler) and by sysProfileTime.

The calls cost almost nothing, so they can be left in a finished program.

Example

Example.bam
sysProfileStart("Physics")
UpdatePhysics()
sysProfileEnd("Physics")