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

🔊 Reduce debug log duration precision #2223

Merged
merged 1 commit into from
Nov 4, 2023
Merged

Conversation

huchenlei
Copy link
Collaborator

This PR reduces duration measurement in Script functions to 3 decimal points.

Sample logs after change:

2023-11-04 17:00:32,572 - ControlNet - DEBUG - Create LRU cache (max_size=16) for preprocessor results.
2023-11-04 17:00:32,573 - ControlNet - DEBUG - __init__ ran in: 0.001 sec
2023-11-04 17:00:32,700 - ControlNet - DEBUG - uigroup ran in: 0.031 sec
2023-11-04 17:00:32,731 - ControlNet - DEBUG - uigroup ran in: 0.030 sec
2023-11-04 17:00:32,766 - ControlNet - DEBUG - uigroup ran in: 0.034 sec
2023-11-04 17:00:32,767 - ControlNet - DEBUG - ui ran in: 0.098 sec

@huchenlei huchenlei marked this pull request as ready for review November 4, 2023 21:03
@huchenlei huchenlei merged commit 5037f5c into Mikubill:main Nov 4, 2023
1 check failed
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