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

feat(solc): pass compile time to reporter #1098

Merged
merged 2 commits into from Apr 2, 2022

Conversation

ecmendenhall
Copy link
Contributor

@ecmendenhall ecmendenhall commented Mar 31, 2022

Motivation

We'd like to show time spent compiling a project in Forge. Other reporters could probably use this information, too.

Solution

Track elapsed compile time as a std::time::Duration and pass it through to the configured Reporter as an extra arg to on_solc_success. See also foundry-rs/foundry#1145.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@gakonst
Copy link
Owner

gakonst commented Mar 31, 2022

defer review here to @mattsse altho looks good at a high level

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gakonst
Copy link
Owner

gakonst commented Apr 2, 2022

@ecmendenhall is this still a draft / you got more you wanna do on it, or should we consider merging here and in foundry? Thanks for the work!

@ecmendenhall ecmendenhall marked this pull request as ready for review April 2, 2022 02:08
@ecmendenhall
Copy link
Contributor Author

@gakonst OK to merge if it looks good to you! I was gonna check in on whether I should update the changelog or bump a version somewhere, but otherwise good to go.

@ecmendenhall ecmendenhall force-pushed the horsefacts/report-compile-time branch from 8435965 to f065935 Compare April 2, 2022 02:50
@gakonst gakonst merged commit 18dda9a into gakonst:master Apr 2, 2022
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.

None yet

3 participants