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

DevTools logs Timeline metadata only once (when profiling starts) #23141

Closed

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Jan 19, 2022

Builds on top of #23137.

Only adds one commit, which addresses a previous TODO comment in profilingHooks.js:

Related to #22529.


Note that this PR (in isolation) makes the Timeline profiler feature unusable. It will be part of a stack of PRs that will be merged together once finished.

@bvaughn bvaughn requested a review from lunaruan January 19, 2022 15:26
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jan 19, 2022
@bvaughn bvaughn changed the title DevTools profiler refactor phase 3 DevTools logs Timeline metadata only once (when profiling starts) Jan 19, 2022
@bvaughn bvaughn mentioned this pull request Jan 19, 2022
12 tasks
@sizebot
Copy link

sizebot commented Jan 19, 2022

Comparing: 505c15c...3d8192b

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 129.59 kB 129.59 kB = 41.55 kB 41.54 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 134.77 kB 134.77 kB = 43.10 kB 43.10 kB
facebook-www/ReactDOM-prod.classic.js = 428.19 kB 428.19 kB = 78.60 kB 78.60 kB
facebook-www/ReactDOM-prod.modern.js = 418.18 kB 418.18 kB = 77.17 kB 77.17 kB
facebook-www/ReactDOMForked-prod.classic.js = 428.19 kB 428.19 kB = 78.60 kB 78.60 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 3d8192b

@bvaughn bvaughn force-pushed the devtools-profiler-refactor-phase-3 branch from 5c5f367 to c43999d Compare January 19, 2022 19:03
Brian Vaughn added 4 commits January 20, 2022 13:51
React will call the DevTools profiling hooks unconditionally (for DEV and profiling builds) but DevTools will only log the data to the User Timing API when DevTools is profiling.
@bvaughn bvaughn force-pushed the devtools-profiler-refactor-phase-3 branch from f10cfea to 3d8192b Compare January 20, 2022 19:40
@bvaughn
Copy link
Contributor Author

bvaughn commented Jan 20, 2022

Squashed into #23158

@bvaughn bvaughn closed this Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Component: Developer Tools React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants