ChromiumTracingCompleteEvent Class
Represents a complete event that tracks an operation with a start time and duration in a single event.
public sealed class ChromiumTracingCompleteEvent : ChromiumTracingEventExample
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
ChromiumTracingEventChromiumTracingCompleteEvent
Constructors
| Name | Description |
|---|---|
| ChromiumTracingCompleteEvent() |
ChromiumTracingCompleteEvent()
public ChromiumTracingCompleteEvent()No documentation is available.
Properties
| Name | Description |
|---|---|
| Duration | Gets or sets the duration of the event. |
| EndStackTrace | Gets or sets the stack trace at the end of the event. |
| ThreadDuration | Gets or sets the thread clock duration of the event. |
| Type |
Duration
ChromiumTracingCompleteEvent.csEndStackTrace
ChromiumTracingCompleteEvent.csGets or sets the stack trace at the end of the event.
public IEnumerable<string>? EndStackTrace { get; set; }