# Sandbox.Diagnostics.ProfileScope

A named region for profiler captures. Declare one as a static readonly field and time work with `using var scope = Scope.Start();`.
Name a fixed operation, not an object. Costs a flag check while nothing profiles.

- Kind: class
- Namespace: `Sandbox.Diagnostics`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`ProfileScope`](/api/Sandbox.Diagnostics.ProfileScope/.ctor)

## Methods

- [`Start`](/api/Sandbox.Diagnostics.ProfileScope/Start): Begin a scope on this thread. Never carry it across an await or to another thread.
