![]() |
Contur 2
Educational OS kernel simulator
|
RAII helper that pushes/pops tracer scope automatically. More...
#include <trace_scope.h>
Public Member Functions | |
| TraceScope (ITracer &tracer, std::string_view subsystem, std::string_view operation) | |
| Constructs a nested tracing scope. | |
| ~TraceScope () | |
| Destroys scope and pops nesting level. | |
| TraceScope (const TraceScope &)=delete | |
| Copy construction is disabled. | |
| TraceScope & | operator= (const TraceScope &)=delete |
| Copy assignment is disabled. | |
| TraceScope (TraceScope &&)=delete | |
| Move construction is disabled. | |
| TraceScope & | operator= (TraceScope &&)=delete |
| Move assignment is disabled. | |
Private Attributes | |
| ITracer & | tracer_ |
| bool | active_ |
RAII helper that pushes/pops tracer scope automatically.
Definition at line 13 of file trace_scope.h.
|
inline |
Constructs a nested tracing scope.
| tracer | Tracer instance. |
| subsystem | Subsystem name. |
| operation | Operation name. |
Definition at line 20 of file trace_scope.h.
References active_, and tracer_.
Referenced by operator=(), operator=(), TraceScope(), and TraceScope().
|
inline |
Destroys scope and pops nesting level.
Definition at line 28 of file trace_scope.h.
|
delete |
Copy construction is disabled.
References TraceScope().
|
delete |
Move construction is disabled.
References TraceScope().
|
delete |
Copy assignment is disabled.
References TraceScope().
|
delete |
Move assignment is disabled.
References TraceScope().
|
private |
Definition at line 49 of file trace_scope.h.
Referenced by TraceScope(), and ~TraceScope().
|
private |
Definition at line 48 of file trace_scope.h.
Referenced by TraceScope(), and ~TraceScope().