Commit Graph
2 Commits
Author SHA1 Message Date
CodexandClaude Sonnet 4.5 96fdc96f24 refactor(cleanup): 移除剩余死代码模块
- 删除 douyin/utils/douyin_text_utils.py 及其测试
- 移除 performance_tracker.py 中未使用的 track_function 方法
- 移除 param_usage_tracer.py 中未使用的 stop_tracing / is_enabled
- 清理 bin/run_cli.py 和 tests/test_imports.py 中的残留引用

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-23 21:58:41 +08:00
CodexandClaude Opus 4.7 7d31075ce3 tests: 新增 PerformanceTracker 单元测试 (13 用例)
douyin/logging/performance_tracker.PerformanceTracker 6 个方法:
  - start_timer/end_timer:基本时长测量、未知 id 返回 0、二次 end 幂等
  - get_elapsed:进行中 / 未知 / end 后的行为
  - track_function:装饰器透传值 + 记录时长 + 异常路径仍记录
  - track_step:自定义 name 记录
  - get_statistics:空 / 多次平均

回归:tests/ 321 passed / 1 skipped。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 14:56:56 +08:00