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: add opcodes profile information #45

Merged
merged 7 commits into from
Nov 24, 2023
Merged

Conversation

kobyhallx
Copy link
Contributor

@kobyhallx kobyhallx commented Nov 15, 2023

Adds Command (with codelens Profile and key binding shift+alt+ctrl+n p to invoke profile command in LSP and display results as line decoration at the end, eg. // 15 ACIR opcodes. More detailed information is available on hover of individual code fragment (span).

image

Part of
feat: Expose Profile information in vscode noir-lang/noir#3501

@kobyhallx kobyhallx marked this pull request as ready for review November 17, 2023 12:40
@kobyhallx
Copy link
Contributor Author

Needs noir-lang/noir#3496

@signorecello
Copy link

this is great, thanks @kobyhallx

@TomAFrench
Copy link
Member

TomAFrench commented Nov 23, 2023

I'm not seeing any line decorations in vscode. It's instead throwing an error that window.activeTextEditor is undefined.

Edit: managed to fix this. There's not very good feedback in the case where the profiling codelens fails.

@kobyhallx kobyhallx merged commit 78e529a into master Nov 24, 2023
@kobyhallx kobyhallx deleted the kh-profile-opcodes-vsc branch November 24, 2023 12:41
@github-actions github-actions bot mentioned this pull request Nov 24, 2023
kobyhallx added a commit that referenced this pull request Nov 24, 2023
@kobyhallx
Copy link
Contributor Author

Edit: managed to fix this. There's not very good feedback in the case where the profiling codelens fails.

Are you going to bring this fix back?

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.

3 participants