ChromiumTracingInstantEvent Class
Represents an instant event that marks a single point in time.
public sealed class ChromiumTracingInstantEvent : ChromiumTracingEventExample
await using var writer = ChromiumTracingWriter.Create("trace.json");
await writer.WriteEventAsync(new ChromiumTracingInstantEvent
{
Name = "Checkpoint",
Category = "milestone",
Timestamp = DateTimeOffset.UtcNow,
Scope = ChromiumTracingInstantEventScope.Thread,
ProcessId = Environment.ProcessId,
ThreadId = Environment.CurrentManagedThreadId,
});- Inheritance
ChromiumTracingEventChromiumTracingInstantEvent
Constructors
| Name | Description |
|---|---|
| ChromiumTracingInstantEvent() |
ChromiumTracingInstantEvent()
public ChromiumTracingInstantEvent()No documentation is available.
Properties
| Name | Description |
|---|---|
| Scope | Gets or sets the scope of the instant event (Global, Process, or Thread). |
| Type |
Gets or sets the scope of the instant event (Global, Process, or Thread).
public ChromiumTracingInstantEventScope? Scope { get; set; }