Repository navigation
A turn names a callback's microtasks and its slowest finished step - #11
Merged
Merged
Conversation
Once a timer, immediate or frame callback returns, the microtasks it queued run as "<name> > microtasks", so a watcher can tell the callback from the renders it set off. Each turn also records its longest finished step and how long it ran (Turn::slowestStep, slowestStepMs).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From the vendored copy in a game, three files under
src/jsand its test.<name> > microtasksinHost::Turn::callback. React's synchronous renders run there, and before this they were filed under the callback's own name.Turn::slowestStep,slowestStepMs), so a watcher that looks late in a turn can still name the step that took the time.Turninitializer lists every field, which GCC and the NDK's clang require under-Werror.Checks
bureau_js_tests: 15 cases pass on macOS, with the new "a held frame names its callback's microtasks apart from it" and the extended "a held turn times its step apart from the steps before it".deno install --frozen, fmt, lint,deno task checkanddeno task testpass on this branch.