Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a summary of time spent in different phases of a Darker run (in debug output) #573

Open
3 tasks
akaihola opened this issue Mar 28, 2024 · 0 comments
Open
3 tasks
Labels
enhancement New feature or request help wanted Extra attention is needed performance Speed or memory usage improvement
Milestone

Comments

@akaihola
Copy link
Owner

akaihola commented Mar 28, 2024

To help troubleshoot and fix performance issues, it would be helpful to be able to get a summary of time spent in different phases of a Darker run. The summary could be output when debug mode is enabled with --verbose.

If there's a good package in PyPI to make this easy, we could add it as an optional dependency, and in case it's not installed, --verbose could instruct the user to pip install it to get a timings summary.

Steps:

  • Research existing Python packages for measuring and summarizing timings
  • Design the granularity: which phases of a Darker run should be measured?
  • Implement and create a PR

Related:

@akaihola akaihola added enhancement New feature or request help wanted Extra attention is needed performance Speed or memory usage improvement labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed performance Speed or memory usage improvement
Projects
Development

No branches or pull requests

1 participant