Debug
ProfileSection
A named stretch of code whose cost is accumulated by NebulaProfiler.
generated from the sources
Class in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Debug/NebulaProfiler.cspublic sealed class ProfileSectionA named stretch of code whose cost is accumulated by NebulaProfiler. Begin/End are a Stopwatch.GetTimestamp read each, cheap enough to leave in shipping workers.
Fields
Name
public readonly string Name;Methods
Begin
public void Begin();Add
public void Add(long elapsed);Count elapsed stopwatch ticks gathered in a local over one pass: a section hit per entity adds once per pass, not per entity.
End
public void End();