ChromiumTracingInstantEvent Class

Represents an instant event that marks a single point in time.

public sealed class ChromiumTracingInstantEvent : ChromiumTracingEvent

Example

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
ChromiumTracingEvent ChromiumTracingInstantEvent

Constructors

NameDescription
ChromiumTracingInstantEvent()

ChromiumTracingInstantEvent()

public ChromiumTracingInstantEvent()

No documentation is available.

Properties

NameDescription
ScopeGets 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; }
public override string Type { get; }

Property value

string

No documentation is available.