docs: update core and debug API docs
This commit is contained in:
@@ -11,6 +11,10 @@ void ExportChromeTracing(const Containers::String& filePath)
|
||||
**参数:**
|
||||
- `filePath` - 输出文件路径
|
||||
|
||||
**返回:** `void`
|
||||
|
||||
**线程安全:** ✅ 线程安全
|
||||
|
||||
**复杂度:** O(n),n 为记录的样本数量
|
||||
|
||||
**示例:**
|
||||
@@ -35,7 +39,7 @@ void RenderFrame() {
|
||||
XCEngine::Debug::Profiler::Get().EndFrame();
|
||||
}
|
||||
|
||||
// 运行一段时间后导出
|
||||
// 运行一段时间后导出(需在 Shutdown 前调用)
|
||||
XCEngine::Debug::Profiler::Get().ExportChromeTracing("trace.json");
|
||||
XCEngine::Debug::Profiler::Get().Shutdown();
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user