![]() |
Contur 2
Educational OS kernel simulator
|
Tracer interface used by kernel subsystems. More...
#include <i_tracer.h>
Public Member Functions | |
| virtual | ~ITracer ()=default |
| Virtual destructor for polymorphic cleanup. | |
| virtual void | trace (const TraceEvent &event)=0 |
| Emits a pre-constructed trace event. | |
| virtual void | pushScope (std::string_view subsystem, std::string_view operation)=0 |
| Enters a nested tracing scope. | |
| virtual void | popScope ()=0 |
| Leaves the current tracing scope. | |
| virtual std::uint32_t | currentDepth () const noexcept=0 |
| Returns current tracing depth for this tracer. | |
| virtual void | setMinLevel (TraceLevel level) noexcept=0 |
| Sets minimum event level that will be emitted. | |
| virtual TraceLevel | minLevel () const noexcept=0 |
| Returns minimum event level that will be emitted. | |
| virtual const IClock & | clock () const noexcept=0 |
| Returns tracer clock reference. | |
Tracer interface used by kernel subsystems.
Definition at line 16 of file i_tracer.h.
|
virtualdefault |
Virtual destructor for polymorphic cleanup.
|
nodiscardpure virtualnoexcept |
Returns tracer clock reference.
Implemented in contur::NullTracer, and contur::Tracer.
References clock().
Referenced by clock().
|
nodiscardpure virtualnoexcept |
Returns current tracing depth for this tracer.
Implemented in contur::NullTracer, and contur::Tracer.
|
nodiscardpure virtualnoexcept |
Returns minimum event level that will be emitted.
Implemented in contur::NullTracer, and contur::Tracer.
References minLevel().
Referenced by minLevel().
|
pure virtual |
Leaves the current tracing scope.
Implemented in contur::NullTracer, and contur::Tracer.
|
pure virtual |
Enters a nested tracing scope.
| subsystem | Subsystem name. |
| operation | Operation name. |
Implemented in contur::NullTracer, and contur::Tracer.
|
pure virtualnoexcept |
Sets minimum event level that will be emitted.
| level | Minimum accepted level. |
Implemented in contur::NullTracer, and contur::Tracer.
References setMinLevel().
Referenced by setMinLevel().
|
pure virtual |
Emits a pre-constructed trace event.
| event | Trace event to emit. |
Implemented in contur::NullTracer, and contur::Tracer.