|
VLink
2.0.0
A high-performance communication middleware
|
Scope guard that opens and closes a CpuProfiler active interval.
更多...
#include <cpu_profiler_guard.h>
Public 成员函数 | |
| CpuProfilerGuard (class CpuProfiler *profiler) noexcept | |
Constructs the guard and opens the active interval on profiler. 更多... | |
| ~CpuProfilerGuard () noexcept | |
| Destructor; closes the active interval on the bound profiler. 更多... | |
Scope guard that opens and closes a CpuProfiler active interval.
Calls CpuProfiler::begin in its constructor and CpuProfiler::end in its destructor. A null profiler pointer is accepted; both ends become no-ops in that case.
|
explicitnoexcept |
Constructs the guard and opens the active interval on profiler.
| profiler | Target profiler; nullptr disables both ends. |
|
noexcept |
Destructor; closes the active interval on the bound profiler.