次の方法で共有


DebugTracerGraphModelHelper Class

Definition

Important

This API is not CLS-compliant.

Helper class for Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.DebugTracer that provides additional functionality specific to graph model objects and properties. Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.DebugTracer needs to be enabled in order for the tracing to happen.

public ref class DebugTracerGraphModelHelper abstract sealed
[System.CLSCompliant(false)]
public static class DebugTracerGraphModelHelper
public static class DebugTracerGraphModelHelper
[<System.CLSCompliant(false)>]
type DebugTracerGraphModelHelper = class
type DebugTracerGraphModelHelper = class
Public Module DebugTracerGraphModelHelper
Inheritance
DebugTracerGraphModelHelper
Attributes

Methods

DEBUG_GetLabelOrId(GraphObject)

Returns the label of an object or the id if the label is null. Should be used for tracing Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.IDebugTracer

SetLabelsToTrace(String[])

Sets the graph model object labels to debug. Passing a null will turn off filtering.

SetPropertiesToTrace(String[])

Sets the graph model properties to debug. Passing a null will turn off filtering.

ShouldTraceObject(Object)

Whether should trace an object

ShouldTraceProperty(GraphProperty)

Whether a property should be traced

ShouldTraceProperty(String)

Whether a property should be traced

TraceMessageIfTrackingGraphElements(GraphObject, GraphProperty, DebugCategory, Boolean, String, Object[])

Calls Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.IDebugTracer.TraceMessage(Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.DebugCategory,System.Boolean,System.String,System.Object[]) if object is being tracked and property is being tracked. Not setting any property filters will emit minimal information to reduce overhead. Also calls ShouldTraceObject(Object) and ShouldTraceProperty(GraphProperty)

TraceMessageIfTrackingGraphElements(GraphObject, String, DebugCategory, Boolean, String, Object[])

Calls Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.IDebugTracer.TraceMessage(Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.DebugCategory,System.Boolean,System.String,System.Object[]) if object is being tracked and property is being tracked. Not setting any property filters will emit minimal information to reduce overhead. Also calls ShouldTraceObject(Object) and ShouldTraceProperty(GraphProperty)

TraceStateIfTrackingGraphElements(GraphObject, GraphProperty, DebugCategory, ITraceableIdentifiableObject, Boolean, Boolean, String, Object[])

Calls Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.IDebugTracer.TraceState(Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.DebugCategory,Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.ITraceableIdentifiableObject,System.Boolean,System.Boolean,System.String,System.Object[]) if object is being tracked and property is being tracked. Not setting any property filters will emit minimal information to reduce overhead. Also calls ShouldTraceObject(Object) and ShouldTraceProperty(GraphProperty)

TraceStateIfTrackingGraphElements(GraphObject, String, DebugCategory, ITraceableIdentifiableObject, Boolean, Boolean, String, Object[])

Calls Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.IDebugTracer.TraceState(Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.DebugCategory,Microsoft.VisualStudio.Diagnostics.PerformanceProvider.DebugTrace.ITraceableIdentifiableObject,System.Boolean,System.Boolean,System.String,System.Object[]) if object is being tracked and property is being tracked. Not setting any property filters will emit minimal information to reduce overhead. Also calls ShouldTraceObject(Object) and ShouldTraceProperty(GraphProperty)

Applies to