Skip to content

Store Isolate* in WallProfiler. #222

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

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

Conversation

szegedi
Copy link

@szegedi szegedi commented Jun 16, 2025

What does this PR do?:
Add an Isolate* field to WallProfiler, bind it in the constructor, and use it throughout the code.

Motivation:
A WallProfiler belong to exactly one Isolate, we can bind it in the constructor and not have to retrieve Isolate::GetCurrent repeatedly. This simplifies the code – many methods don't need to accept an isolate pointer anymore. It also makes the relationship a bit clearer.

How to test the change?:

@szegedi szegedi requested a review from nsavoire as a code owner June 16, 2025 16:38
@szegedi szegedi added the semver-patch Bug or security fixes, mainly label Jun 16, 2025
Copy link

github-actions bot commented Jun 16, 2025

Overall package size

Self size: 1.58 MB
Deduped: 1.95 MB
No deduping: 1.95 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | source-map | 0.7.4 | 226 kB | 226 kB | | pprof-format | 2.1.0 | 111.69 kB | 111.69 kB | | p-limit | 3.1.0 | 7.75 kB | 13.78 kB | | delay | 5.0.0 | 11.17 kB | 11.17 kB | | node-gyp-build | 3.9.0 | 8.81 kB | 8.81 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

A WallProfiler belong to exactly one isolate, we can bind it in the constructor and not have to retrieve Isolate::GetCurrent subsequently
@szegedi szegedi force-pushed the szegedi/isolated-wall branch from 83d9cd5 to 63101a6 Compare June 16, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch Bug or security fixes, mainly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant