Skip to content

Print opcode count and total size in debug output#929

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:fix777
Feb 25, 2025
Merged

Print opcode count and total size in debug output#929
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:fix777

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

Fixes: #777

@bnoordhuis bnoordhuis merged commit 12f7c55 into quickjs-ng:master Feb 25, 2025
@bnoordhuis bnoordhuis deleted the fix777 branch February 25, 2025 10:44
@gengjiawen
Copy link
Copy Markdown

This lacks overall bytecode. looks now based on function

@bnoordhuis
Copy link
Copy Markdown
Contributor Author

Sum them? Printing the total would be redundant, the information is already there.

@gengjiawen
Copy link
Copy Markdown

Sum them? Printing the total would be redundant, the information is already there.

Without this large code will hard to measure perf, like compare bytecode size to v8. I will share more details tomorrow since it’s very late in my timezone.

@gengjiawen
Copy link
Copy Markdown

http://k2.gengjiawen.com:8001/diff

I made a diff page

@gengjiawen
Copy link
Copy Markdown

Sum them? Printing the total would be redundant, the information is already there.

I found out v8 is split too. So current behavior the same with v8, I will sum it with extra method.

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.

expose the bytecode in cli

3 participants