VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
vlink::CpuProfilerGuard类 参考final

RAII scope guard that brackets a CpuProfiler active interval. 更多...

#include <cpu_profiler_guard.h>

vlink::CpuProfilerGuard 的协作图:

Public 成员函数

 CpuProfilerGuard (class CpuProfiler *profiler) noexcept
 Constructs the guard and calls profiler->begin().
 ~CpuProfilerGuard () noexcept
 Destructor – calls profiler->end() to close the active interval.

详细描述

RAII scope guard that brackets a CpuProfiler active interval.

Calls profiler->begin() on construction and profiler->end() on destruction. Handles nullptr profiler gracefully (no-op).

构造及析构函数说明

◆ CpuProfilerGuard()

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

Constructs the guard and calls profiler->begin().

参数
profilerPointer to the CpuProfiler to bracket. If nullptr, both construction and destruction are no-ops.
这是这个函数的调用关系图:

◆ ~CpuProfilerGuard()

vlink::CpuProfilerGuard::~CpuProfilerGuard ( )
noexcept

Destructor – calls profiler->end() to close the active interval.

函数调用图:

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