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

Instrument module init in DEV #1787

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Instrument module init in DEV #1787

merged 1 commit into from
Nov 1, 2023

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Nov 1, 2023

I end up hacking ad-hoc versions of this into the build all the time so let's just add it as a DEV-only patch. That Metro file barely ever changes so it shouldn't be a burden.

Test plan

Change shouldLog to true locally. Observe the output:

Screenshot 2023-11-01 at 13 39 26

@gaearon gaearon force-pushed the instrument-module-init branch from 41a5a65 to 2c87282 Compare November 1, 2023 14:16
@ecreeth
Copy link

ecreeth commented Nov 1, 2023

I don't know if this may be helpful for you, but there's a way for "Investigating the Loaded Modules"

@gaearon
Copy link
Collaborator Author

gaearon commented Nov 1, 2023

Yeah that's nice but not helpful enough because I want to see the dependency tree and the actual timings

Copy link
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

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

Sweet!

@gaearon gaearon merged commit 85c26fb into main Nov 1, 2023
4 checks passed
@gaearon gaearon deleted the instrument-module-init branch November 1, 2023 15:34
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