Skip to content

feat: Add debug mode with profiling and statistics#51

Merged
milinsky merged 1 commit into
mainfrom
feature/debug-mode
Nov 24, 2025
Merged

feat: Add debug mode with profiling and statistics#51
milinsky merged 1 commit into
mainfrom
feature/debug-mode

Conversation

@milinsky
Copy link
Copy Markdown
Member

  • Add DebugInfo class for tracking resolution metrics
  • Add debug mode support in ContainerConfig
  • Integrate profiling in Container::get() method
  • Add methods: enableDebug(), disableDebug(), isDebugEnabled(), getDebugInfo()
  • Track time, memory, and resolution count per service
  • Provide statistics: total time, peak memory, avg time
  • Add getSlowestServices() and getMostResolvedServices()
  • Add complete resolution log with timestamps
  • Add 20 unit tests for DebugInfo
  • Add 15 functional tests for debug mode
  • Update README documentation
  • All tests passing (234 tests, 493 assertions)
  • Psalm validation passed
  • Code style fixed with php-cs-fixer

- Add DebugInfo class for tracking resolution metrics
- Add debug mode support in ContainerConfig
- Integrate profiling in Container::get() method
- Add methods: enableDebug(), disableDebug(), isDebugEnabled(), getDebugInfo()
- Track time, memory, and resolution count per service
- Provide statistics: total time, peak memory, avg time
- Add getSlowestServices() and getMostResolvedServices()
- Add complete resolution log with timestamps
- Add 20 unit tests for DebugInfo
- Add 15 functional tests for debug mode
- Update README documentation
- All tests passing (234 tests, 493 assertions)
- Psalm validation passed
- Code style fixed with php-cs-fixer
@sonarqubecloud
Copy link
Copy Markdown

@milinsky milinsky merged commit 165b91a into main Nov 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant