ChromiumTracingCompleteEvent Class

Represents a complete event that tracks an operation with a start time and duration in a single event.

public sealed class ChromiumTracingCompleteEvent : ChromiumTracingEvent

Example

await using var writer = ChromiumTracingWriter.Create("trace.json");
var startTime = DateTimeOffset.UtcNow;
await writer.WriteEventAsync(new ChromiumTracingCompleteEvent
{
    Name = "Processing",
    Category = "work",
    Timestamp = startTime,
    Duration = TimeSpan.FromMilliseconds(200),
    ProcessId = Environment.ProcessId,
    ThreadId = Environment.CurrentManagedThreadId,
});
Inheritance
ChromiumTracingEvent ChromiumTracingCompleteEvent

Constructors

NameDescription
ChromiumTracingCompleteEvent()

ChromiumTracingCompleteEvent()

public ChromiumTracingCompleteEvent()

No documentation is available.

Properties

NameDescription
DurationGets or sets the duration of the event.
EndStackTraceGets or sets the stack trace at the end of the event.
ThreadDurationGets or sets the thread clock duration of the event.
Type

Gets or sets the duration of the event.

public TimeSpan Duration { get; set; }

Property value

TimeSpan

Gets or sets the stack trace at the end of the event.

public IEnumerable<string>? EndStackTrace { get; set; }

Property value

IEnumerable<string>?

Gets or sets the thread clock duration of the event.

public TimeSpan? ThreadDuration { get; set; }

Property value

TimeSpan?

public override string Type { get; }

Property value

string

No documentation is available.