Skip to content

Conversation

@BruceForstall
Copy link
Contributor

This should help determine where time is being spent in long-running
tasks such as PMI or crossgen2 collections in the CI system.

This should help determine where time is being spent in long-running
tasks such as PMI or crossgen2 collections in the CI system.
@ghost ghost assigned BruceForstall Mar 10, 2022
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 10, 2022
@ghost
Copy link

ghost commented Mar 10, 2022

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Issue Details

This should help determine where time is being spent in long-running
tasks such as PMI or crossgen2 collections in the CI system.

Author: BruceForstall
Assignees: BruceForstall
Labels:

area-CodeGen-coreclr

Milestone: -

@BruceForstall
Copy link
Contributor Author

@kunalspathak PTAL
cc @dotnet/jit-contrib

Copy link
Contributor

@kunalspathak kunalspathak left a 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)
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@ghost ghost added needs-author-action An issue or pull request that requires more info or actions from the author. and removed needs-author-action An issue or pull request that requires more info or actions from the author. labels Mar 10, 2022
@BruceForstall
Copy link
Contributor Author

The main potential benefit here is the line that prints out status, e.g., [1:23]: , etc., by prefixing a time. So we would see when each dll begins being processed.

@kunalspathak
Copy link
Contributor

Sure, lets give it a try and see if it helps.

@BruceForstall BruceForstall merged commit a4a6d30 into dotnet:main Mar 10, 2022
@BruceForstall BruceForstall deleted the SpmiTimestampOutput2 branch March 10, 2022 07:27
@ghost ghost locked as resolved and limited conversation to collaborators Apr 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants