Commit c8fd44a
committed
feat: integrate ProcessMetrics with child process tracking and fix tests
- Upgrade system-metrics to v1.2.0 with ProcessDelta support
- Enable child process tracking in JobProcessingListener (includeChildren: true)
- Fix CPU/memory metrics calculation in JobProcessedListener:
- Use peak->memoryRssBytes instead of current (maximum RSS during execution)
- Use delta->cpuUsagePercentage() instead of cumulative ticks
- Proper CPU time calculation: (cpuPercent/100) * durationSeconds * 1000
- Add comprehensive test coverage:
- 5 ProcessMetrics integration unit tests
- 4 ChildProcessTracking feature tests with realistic scenarios
- Fix flaky performance benchmark tests with proper tolerances
- Merge conflict resolution: removed hooks system integration
- Update PHP requirement to ^8.3|^8.4 (system-metrics dependency requirement)
All tests passing: 125 tests, 350 assertions1 parent 19725e3 commit c8fd44a
File tree
30 files changed
+671
-996
lines changed- .claude
- routes
- src
- Actions
- Contracts
- Facades
- Http/Controllers
- Listeners
- Services
- Support
- tests
- Feature
- Performance
- Unit
- Actions
- Support
30 files changed
+671
-996
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
18 | 34 | | |
19 | 35 | | |
20 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
0 commit comments