Markers Class

Provides a set of methods to output marker data to the Concurrency Visualizer trace file.

Inheritance Hierarchy

Object
  Microsoft.ConcurrencyVisualizer.Instrumentation.Markers

Namespace:  Microsoft.ConcurrencyVisualizer.Instrumentation
Assembly:  Microsoft.ConcurrencyVisualizer.Markers (in Microsoft.ConcurrencyVisualizer.Markers.dll)

Syntax

'Declaration
Public NotInheritable Class Markers
public static class Markers
public ref class Markers abstract sealed
[<AbstractClass>]
[<Sealed>]
type Markers =  class end
public final class Markers

The Markers type exposes the following members.

Properties

  Name Description
Public propertyStatic member DefaultWriter Specifies the default provider for the marker events.

Top

Methods

  Name Description
Public methodStatic member CreateMarkerSeries Creates and returns a marker series object.
Public methodStatic member EnterSpan(String) Marks the beginning of a new span.
Public methodStatic member EnterSpan(Int32, String) Marks the beginning of a new span.
Public methodStatic member EnterSpan(String, array<Object[]) Marks the beginning of a new span.
Public methodStatic member EnterSpan(Importance, String) Marks the beginning of a new span.
Public methodStatic member EnterSpan(Int32, String, array<Object[]) Marks the beginning of a new span.
Public methodStatic member EnterSpan(Importance, Int32, String) Marks the beginning of a new span.
Public methodStatic member EnterSpan(Importance, String, array<Object[]) Marks the beginning of a new span.
Public methodStatic member EnterSpan(Importance, Int32, String, array<Object[]) Marks the beginning of a new span.
Public methodStatic member IsEnabled() Determines whether any session has enabled the markers ETW provider.
Public methodStatic member IsEnabled(Int32) Determines whether any session has enabled the markers ETW provider with the specified category.
Public methodStatic member IsEnabled(Importance) Determines whether any session has enabled the markers ETW provider with the specified importance level.
Public methodStatic member IsEnabled(Importance, Int32) Determines whether any session has enabled the markers ETW provider with the specified importance level and category.
Public methodStatic member WriteAlert(String) Writes an alert to the Concurrency Visualizer trace file with the specified string.
Public methodStatic member WriteAlert(String, array<Object[]) Writes an alert to the Concurrency Visualizer trace file according to the specified format string and arguments.
Public methodStatic member WriteFlag(String) Writes a flag to the Concurrency Visualizer trace file with the specified text.
Public methodStatic member WriteFlag(Int32, String) Writes a flag to the Concurrency Visualizer trace file with the specified important level and text. The text is specified by the format and args parameters.
Public methodStatic member WriteFlag(String, array<Object[]) Writes a flag to the Concurrency Visualizer trace file with the specified text. The text is specified by the format and args parameters.
Public methodStatic member WriteFlag(Importance, String) Writes a flag to the Concurrency Visualizer trace file with the specified importance level and text.
Public methodStatic member WriteFlag(Int32, String, array<Object[]) Writes a flag to the Concurrency Visualizer trace file with the specified category and text. The text is specified by the format and args parameters.
Public methodStatic member WriteFlag(Importance, Int32, String) Writes a flag to the Concurrency Visualizer trace file with the specified importance level, category, and text.
Public methodStatic member WriteFlag(Importance, String, array<Object[]) Writes a flag to the Concurrency Visualizer trace file with the specified importance level and text. The text is specified by the format and args parameters.
Public methodStatic member WriteFlag(Importance, Int32, String, array<Object[]) Writes a flag to the Concurrency Visualizer trace file with the specified importance level, category, and text. The text is specified by the format and args parameters.
Public methodStatic member WriteMessage(String) Writes a message to the Concurrency Visualizer trace file with the specified text.
Public methodStatic member WriteMessage(Int32, String) Writes a message to the Concurrency Visualizer trace file with the specified important level and text. The text is specified by the format and args parameters.
Public methodStatic member WriteMessage(String, array<Object[]) Writes a message to the Concurrency Visualizer trace file with the specified text. The text is specified by the format and args parameters.
Public methodStatic member WriteMessage(Importance, String) Writes a message to the Concurrency Visualizer trace file with the specified importance level and text.
Public methodStatic member WriteMessage(Int32, String, array<Object[]) Writes a message to the Concurrency Visualizer trace file with the specified category and text. The text is specified by the format and args parameters.
Public methodStatic member WriteMessage(Importance, Int32, String) Writes a message to the Concurrency Visualizer trace file with the specified importance level, category, and text.
Public methodStatic member WriteMessage(Importance, String, array<Object[]) Writes a message to the Concurrency Visualizer trace file with the specified importance level and text. The text is specified by the format and args parameters.
Public methodStatic member WriteMessage(Importance, Int32, String, array<Object[]) Writes a message to the Concurrency Visualizer trace file with the specified importance level, category, and text. The text is specified by the format and args parameters.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.ConcurrencyVisualizer.Instrumentation Namespace

Other Resources

Concurrency Visualizer SDK

Concurrency Visualizer Markers

Visualizing EventSource Events as Markers