-
Notifications
You must be signed in to change notification settings - Fork 47k
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: Scheduling Profiler: Better error message when no marks #22106
Comments
Hi @bvaughn, mind if I pick this up? |
Sure thing, @byronluk. |
Thanks! Regarding your comment-
do you mean no marks that were generated by React? (just want to double check since I'm not too familiar with the devtools profiling 😅). If so, I'm thinking the best way to check for this is to see if any React-related profiling data was generated in react/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js Line 853 in f51579f
Specifically checking if any these fields were populated - Does this sound like a sound approach? |
Yes. So a browser performance trace was recorded from a site running the React production bundle (no profiling features enabled) or even a website that wasn't using React at all.
Sure. Realistically it's probably sufficient to check |
Thanks for the guidance! Since react/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js Lines 848 to 851 in 045156c
I ended up checking react/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js Lines 154 to 167 in 045156c
Hopefully that's okay. I submitted a PR here: #22157 |
Good call |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! |
The scheduling profiler currently shows "unsupported version" message if you import a performance trace with no marks.
It incorrectly assumes the lack of an explicit version mark indicates an earlier version of the data which didn't include marks, but in the event that there are no marks at all we should infer that a production version of React DOM was being used instead and show a different error.
The text was updated successfully, but these errors were encountered: