perf: enforce journey budgets and reference traces
This commit is contained in:
@@ -13,6 +13,14 @@ if (requestsTestFault) {
|
||||
await installAuthorizedTestHooks();
|
||||
}
|
||||
|
||||
const requestsPerformanceTrace = TEST_BUILD
|
||||
&& new URL(location.href).searchParams.get('__portfolio_performance') === 'drive-trace.v1'
|
||||
&& new URL(location.href).searchParams.has('__portfolio_test_token');
|
||||
if (requestsPerformanceTrace) {
|
||||
const { installAuthorizedPerformanceInstrumentation } = await import('./testing/performance-instrumentation');
|
||||
await installAuthorizedPerformanceInstrumentation();
|
||||
}
|
||||
|
||||
export const readProductionInputsSnapshot = (source: Document): Readonly<ProductionInputs> => {
|
||||
const snapshot = source.getElementById('portfolio-inputs');
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user