-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add timestamp to some superpmi.py output #66437
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
Conversation
This should help determine where time is being spent in long-running tasks such as PMI or crossgen2 collections in the CI system.
|
Tagging subscribers to this area: @JulieLeeMSFT Issue DetailsThis should help determine where time is being spent in long-running
|
|
@kunalspathak PTAL |
kunalspathak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we would have a timeprefix before the line that superpmi.exe prints, to understand if particular .dll is taking time or not? In latest runs, we see that crossgen2 win-arm64 timed out , but we need to see and compare which .dll(s) are more time consuming compared to win-x64 counter parts. The time prefix at beginning/end would still help, but not sure how useful it would be.
| return | ||
|
|
||
| logging.log(log_level, "============== Contents of %s", filepath) | ||
| logging.log(log_level, "%s============== Contents of %s", get_time_prefix(), filepath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think printing time here is of any use. The real time prefix needs to happen at the point where the contents in the filepath were created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's true it might not be what we might want to see, but it does provide at least some information.
|
The main potential benefit here is the line that prints out status, e.g., |
|
Sure, lets give it a try and see if it helps. |
This should help determine where time is being spent in long-running
tasks such as PMI or crossgen2 collections in the CI system.