Profiler.zoneStartEvent

Emit a zone start event, when code enters a zone.

class Profiler
@system nothrow
uint
zoneStartEvent
(
const string info
)

Parameters

info string

Information about the zone (e.g. its name). Will be added as an info event following the zone start event. Must not be empty or longer than 255 characters and must not contain zero ('\0') characters.

Return Value

Type: uint

Nesting level of the newly started zone. Must be passed when corresponding zoneEndEvent() is called. Used to ensure child events end before their parent events.

Note: zoneStartEvent should only be aleed directly where the Zone struct is not sufficient (i.e. where a zone cannot be wrapped in a scope).

Meta