Nebula
Debug

ProfileSection

A named stretch of code whose cost is accumulated by NebulaProfiler.

generated from the sources
public sealed class ProfileSection

A 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();

On this page