Interface IViewInstrumentsSink
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
scopeScopelodLevelOfDetailmessageReadOnlySpan<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
scopeScopelodLevelOfDetail
Returns
Log(Scope, LevelOfDetail, ReadOnlySpan<char>)
Writes a single log message to the sink.
void Log(Scope scope, LevelOfDetail lod, ReadOnlySpan<char> message)
Parameters
scopeScopelodLevelOfDetailmessageReadOnlySpan<char>
TrackTextMeasure(long)
Reports one text measurement and the elapsed underlying-context ticks.
void TrackTextMeasure(long elapsedTicks)
Parameters
elapsedTickslong
TrackView(Scope, View)
Reports structured traversal of a view in the specified scope.
void TrackView(Scope scope, View view)