 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 |
|