- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
901 B
901 B
Profiler::BeginProfile
void BeginProfile(const char* name)
开始一个性能分析块。将分析节点压入栈中并记录开始时间。每次调用 BeginProfile 应与一次 EndProfile 配对使用。
参数:
name- 分析块的名称,用于在导出结果中标识
复杂度: O(1)
示例:
#include <XCEngine/Debug/Profiler.h>
void ProcessMesh() {
XCEngine::Debug::Profiler::Get().BeginProfile("ProcessMesh");
XCEngine::Debug::Profiler::Get().BeginProfile("ComputeVertices");
ComputeVertices();
XCEngine::Debug::Profiler::Get().EndProfile();
XCEngine::Debug::Profiler::Get().BeginProfile("ComputeIndices");
ComputeIndices();
XCEngine::Debug::Profiler::Get().EndProfile();
XCEngine::Debug::Profiler::Get().EndProfile();
}
相关文档
- Profiler 总览 - 返回类总览