Files
XCEngine/docs/api/threading/task-system-config/enable-task-profiling.md
ssdfasd f427699ac6 refactor: improve test infrastructure and fix OpenGL GLAD initialization
- Rename D3D12Enum.h to D3D12Enums.h for naming consistency
- Fix OpenGL unit test GLAD initialization by using gladLoadGL()
  instead of gladLoadGLLoader(wglGetProcAddress) for fallback support
- Migrate remaining tests to use gtest_discover_tests for granular
  test discovery (math, core, containers, memory, threading, debug,
  components, scene, resources, input, opengl)
- Remove obsolete TEST_RESOURCES_DIR and copy_directory commands
  from OpenGL unit test CMakeLists (minimal/Res doesn't exist)
- Update TEST_SPEC.md with performance metrics and per-module
  build/test commands for faster development workflow
- Update CMake path references to use lowercase paths
2026-03-23 00:43:02 +08:00

669 B

TaskSystemConfig::enableTaskProfiling

bool enableTaskProfiling = true

是否启用任务性能分析。启用后系统会记录任务的执行时间、等待时间等统计信息,可用于性能调试。

类型: bool

默认值: true

当前状态: 此配置项当前未实际使用,任务系统不会记录性能分析数据。

示例:

TaskSystemConfig config;
config.workerThreadCount = 4;
config.enableTaskProfiling = true; // 预留配置项

#ifdef NDEBUG
config.enableTaskProfiling = false; // 预留配置项
#endif

相关文档