VLink  2.0.0
A high-performance communication middleware
vlink::CpuProfilerGuard类 参考final

Scope guard that opens and closes a CpuProfiler active interval. 更多...

#include <cpu_profiler_guard.h>

vlink::CpuProfilerGuard 的协作图:

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.

构造及析构函数说明

◆ CpuProfilerGuard()

vlink::CpuProfilerGuard::CpuProfilerGuard ( class CpuProfiler profiler)
explicitnoexcept

Constructs the guard and opens the active interval on profiler.

参数
profilerTarget profiler; nullptr disables both ends.

◆ ~CpuProfilerGuard()

vlink::CpuProfilerGuard::~CpuProfilerGuard ( )
noexcept

Destructor; closes the active interval on the bound profiler.


该类的文档由以下文件生成: