Repository navigation
docs: correct the request chain change for simulated throttling - #27
Merged
Merged
Conversation
XHR is already linked by linkCPUNodes, so only fetch is missing. The link a fetch needs is in the v8::Debugger::AsyncTask flow events of disabled-by-default-v8.inspector, which Lighthouse would have to record. lighthouse#15897 has the same symptom but a different cause. Closes #26
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.
Closes #26.
What
Corrects change 3 in
docs/simulated-throttling.mdand the section behind it:linkCPUNodesmakes the task withXHRReadyStateChangeatreadyState4 depend on the request. Onlyfetchis missing.v8::Debugger::AsyncTaskScheduled/AsyncTaskRunflow events indisabled-by-default-v8.inspectorlink the task that sent thefetchto the task that continues after it. Lighthouse already turns on async stacks but doesn't record that category.fetchdepends on that request, if the response arrived first.core/gather/gatherers/trace.jsto its files. The Order section says change 3 can be tried withadditionalTraceCategories, and that the size of the category on a real app decides whether Lighthouse can record it by default.TCPConnectioncharging no time to first byte on a warm h2 connection.Verified
additionalTraceCategories: 'disabled-by-default-v8.inspector'. The flow events link the click task that sends/api/routeto the task that sends/api/details. The trace went from 0.74 MB to 0.76 MB.linkCPUNodes,ConnectionPoolandAsyncJSCallsHandlerin@paulirish/trace_engine0.0.67, andprepare.jsandtrace.jsin Lighthouse 13.6.0.pnpm nx format:checkpasses. Only Markdown changed.tmp/probe/lh-async.mjs: the recording