Skip to content

build: make electron renderer init scripts profilable - #23855

Merged
MarshallOfSound merged 1 commit into
masterfrom
make-renderer-init-profilable
Jun 1, 2020
Merged

MarshallOfSound merged 1 commit into
masterfrom
make-renderer-init-profilable

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

The devtools profiler is not attached at the point we run out init scripts (or our apps preload scripts), we do not really want to change when we run these init scripts but for when a dev is doing performance work it makes sense to give them an option to make the devtools profiler actually work on both our init scripts and their preload script. This PR adds that logic behind an environment variable ELECTRON_PROFILE_INIT_SCRIPTS that maintainers can use to profile these init scripts.

Notes: none

The devtools profiler is not attached at the point we run out init scripts (or our apps preload scripts), we do not really want to change when we run these init scripts but for when a dev is doing performance work it makes sense to give them an option to make the devtools profiler actually work on both our init scripts and their preload script.  This PR adds that logic behind an environment variable ELECTRON_PROFILE_INIT_SCRIPTS.

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks reasonable to me.

@release-clerk

release-clerk Bot commented Jun 1, 2020

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Jun 1, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "10-x-y", please check out #23891

@trop

trop Bot commented Jun 1, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "9-x-y", please check out #23892

@MarshallOfSound

Copy link
Copy Markdown
Member Author

/trop run backport-to 8-x-y

@trop

trop Bot commented Jun 2, 2020

Copy link
Copy Markdown
Contributor

The backport process for this PR has been manually initiated -
sending your commits to "8-x-y"!

@trop

trop Bot commented Jun 2, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "8-x-y", please check out #23914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants