Table of Contents

Interface IViewInstrumentsSink

Namespace
Xui.Core.Debug
Assembly
Xui.Core.dll

Instrumentation API exposed to a visual tree. A view receives one instance for the render surface that owns its tree.

public interface IViewInstrumentsSink

Methods

BeginTrace(Scope, LevelOfDetail, ReadOnlySpan<char>)

Begins a named trace scope. Must be paired with EndTrace().

void BeginTrace(Scope scope, LevelOfDetail lod, ReadOnlySpan<char> message)

Parameters

scope Scope
lod LevelOfDetail
message ReadOnlySpan<char>

EndTrace()

Ends the most recently opened trace scope.

void EndTrace()

IsEnabled(Scope, LevelOfDetail)

Returns true if this sink should receive events at the given scope and level of detail.

bool IsEnabled(Scope scope, LevelOfDetail lod)

Parameters

scope Scope
lod LevelOfDetail

Returns

bool

Log(Scope, LevelOfDetail, ReadOnlySpan<char>)

Writes a single log message to the sink.

void Log(Scope scope, LevelOfDetail lod, ReadOnlySpan<char> message)

Parameters

scope Scope
lod LevelOfDetail
message ReadOnlySpan<char>

TrackTextMeasure(long)

Reports one text measurement and the elapsed underlying-context ticks.

void TrackTextMeasure(long elapsedTicks)

Parameters

elapsedTicks long

TrackView(Scope, View)

Reports structured traversal of a view in the specified scope.

void TrackView(Scope scope, View view)

Parameters

scope Scope
view View