Files
XCEngine/docs/api/threading/task-system-config/enable-task-profiling.md
ssdfasd d34d040563 Fix broken links in Threading API docs
Fix 14 broken cross-references in docs/api/threading/:
- lambda-task path: lambdatask -> lambda-task (5 occurrences)
- task-system-config path: tasksystemconfig -> task-system-config (6 occurrences)
- read-write-lock self-ref: readwritelock -> read-write-lock (6 occurrences)
- task-system cross-method: createtaskgroup/destroytaskgroup -> create-task-group/destroy-task-group
- thread cross-method: getcurrentid/getid -> get-current-id/get-id

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 01:30:37 +08:00

30 lines
671 B
Markdown

# TaskSystemConfig::enableTaskProfiling
```cpp
bool enableTaskProfiling = true
```
是否启用任务性能分析。启用后系统会记录任务的执行时间、等待时间等统计信息,可用于性能调试。
**类型:** `bool`
**默认值:** `true`
**当前状态:** 此配置项当前未实际使用,任务系统不会记录性能分析数据。
**示例:**
```cpp
TaskSystemConfig config;
config.workerThreadCount = 4;
config.enableTaskProfiling = true; // 预留配置项
#ifdef NDEBUG
config.enableTaskProfiling = false; // 预留配置项
#endif
```
## 相关文档
- [TaskSystemConfig 总览](task-system-config.md) - 返回类总览