Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
contur::TraceEvent Struct Reference

Structured trace event record. More...

#include <trace_event.h>

Public Attributes

Tick timestamp = 0
 Simulation timestamp when the event was emitted.
std::string subsystem
 Subsystem that emitted the event.
std::string operation
 Operation name within the subsystem.
std::string details
 Optional human-readable details payload.
TraceLevel level = TraceLevel::Info
 Event severity level.
std::uint32_t depth = 0
 Current tracer nesting depth.
std::size_t workerId = 0
 Worker index used by concurrent dispatcher runtime.
std::uint64_t sequence = 0
 Monotonic sequence value used for canonical ordering.
std::uint64_t epoch = 0
 Runtime epoch identifier used for deterministic replay checks.

Detailed Description

Structured trace event record.

Used by both the tracing subsystem (Tracer + sinks) and the dispatcher runtime metadata emitted by DispatcherPool.

Definition at line 20 of file trace_event.h.

Member Data Documentation

◆ depth

std::uint32_t contur::TraceEvent::depth = 0

Current tracer nesting depth.

Definition at line 38 of file trace_event.h.

◆ details

std::string contur::TraceEvent::details

Optional human-readable details payload.

Definition at line 32 of file trace_event.h.

Referenced by formatTraceEventLine().

◆ epoch

std::uint64_t contur::TraceEvent::epoch = 0

Runtime epoch identifier used for deterministic replay checks.

Definition at line 47 of file trace_event.h.

◆ level

TraceLevel contur::TraceEvent::level = TraceLevel::Info

Event severity level.

Definition at line 35 of file trace_event.h.

Referenced by formatTraceEventLine().

◆ operation

std::string contur::TraceEvent::operation

Operation name within the subsystem.

Definition at line 29 of file trace_event.h.

◆ sequence

std::uint64_t contur::TraceEvent::sequence = 0

Monotonic sequence value used for canonical ordering.

Definition at line 44 of file trace_event.h.

◆ subsystem

std::string contur::TraceEvent::subsystem

Subsystem that emitted the event.

Definition at line 26 of file trace_event.h.

◆ timestamp

Tick contur::TraceEvent::timestamp = 0

Simulation timestamp when the event was emitted.

Definition at line 23 of file trace_event.h.

Referenced by formatTraceEventLine(), and contur::makeTraceEvent().

◆ workerId

std::size_t contur::TraceEvent::workerId = 0

Worker index used by concurrent dispatcher runtime.

Definition at line 41 of file trace_event.h.


The documentation for this struct was generated from the following file: