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