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

Add essential EIP-7756 tracing fields #2023

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Jan 25, 2025

Add (for eof) section and funcion depth fields, and make pc container relative instead of code section relative.

Add (for eof) section and funcion depth fields, and make pc container
relative instead of code section relative.
@@ -153,6 +153,7 @@ where

// ExtDelegateCall is not allowed to call non-EOF contracts.
if is_ext_delegate_call && !bytecode.bytes_slice().starts_with(&EOF_MAGIC_BYTES) {
context.journal().checkpoint_revert(checkpoint);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was causing the depth field to read incorrectly when this case triggered. Not sure if here was any way to leverage it. Also, EOF only.

Copy link

codspeed-hq bot commented Jan 25, 2025

CodSpeed Performance Report

Merging #2023 will degrade performances by 7.86%

Comparing shemnon:eof/tracing (6fadacc) with main (be92e1d)

Summary

❌ 2 regressions
✅ 6 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
analysis 262.7 µs 274.6 µs -4.33%
transfer 132.8 µs 144.2 µs -7.86%

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.

2 participants