fix: improve doc link navigation and tree display
- 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
This commit is contained in:
30
docs/api/debug/profiler/initialize.md
Normal file
30
docs/api/debug/profiler/initialize.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Profiler::Initialize
|
||||
|
||||
```cpp
|
||||
void Initialize()
|
||||
```
|
||||
|
||||
初始化性能分析器。在首次使用性能分析功能前必须调用。初始化内部状态标志,确保分析器已准备好工作。
|
||||
|
||||
**注意:** 帧计时器等数据结构在首次 BeginFrame 时自动初始化。
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Debug/Profiler.h>
|
||||
|
||||
int main() {
|
||||
XCEngine::Debug::Profiler::Get().Initialize();
|
||||
XCEngine::Debug::Profiler::Get().BeginFrame();
|
||||
// ... 性能测量 ...
|
||||
XCEngine::Debug::Profiler::Get().EndFrame();
|
||||
XCEngine::Debug::Profiler::Get().Shutdown();
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Profiler 总览](profiler.md) - 返回类总览
|
||||
Reference in New Issue
Block a user