@paulirish/trace_engine 0.0.54 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.tmp/tsbuildinfo/models/trace/extras/polyfills.d.ts +4 -0
- package/.tmp/tsbuildinfo/models/trace/extras/polyfills.d.ts.map +1 -0
- package/.tmp/tsbuildinfo/tsconfig.tsbuildinfo +1 -1
- package/core/platform/MimeType.d.ts +3 -2
- package/core/platform/MimeType.js +4 -3
- package/core/platform/MimeType.js.map +1 -1
- package/generated/protocol.d.ts +115 -16
- package/locales/af.json +52 -10
- package/locales/am.json +52 -10
- package/locales/ar.json +51 -9
- package/locales/as.json +52 -10
- package/locales/az.json +52 -10
- package/locales/be.json +52 -10
- package/locales/bg.json +52 -10
- package/locales/bn.json +52 -10
- package/locales/bs.json +52 -10
- package/locales/ca.json +52 -10
- package/locales/cs.json +52 -10
- package/locales/cy.json +52 -10
- package/locales/da.json +52 -10
- package/locales/de.json +52 -10
- package/locales/el.json +52 -10
- package/locales/en-GB.json +52 -10
- package/locales/en-US.json +12 -12
- package/locales/en-XL.json +12 -12
- package/locales/es-419.json +52 -10
- package/locales/es.json +50 -8
- package/locales/et.json +52 -10
- package/locales/eu.json +52 -10
- package/locales/fa.json +51 -9
- package/locales/fi.json +52 -10
- package/locales/fil.json +52 -10
- package/locales/fr-CA.json +52 -10
- package/locales/fr.json +52 -10
- package/locales/gl.json +52 -10
- package/locales/gu.json +52 -10
- package/locales/he.json +52 -10
- package/locales/hi.json +52 -10
- package/locales/hr.json +52 -10
- package/locales/hu.json +51 -9
- package/locales/hy.json +51 -9
- package/locales/id.json +52 -10
- package/locales/is.json +53 -11
- package/locales/it.json +51 -9
- package/locales/ja.json +52 -10
- package/locales/ka.json +53 -11
- package/locales/kk.json +51 -9
- package/locales/km.json +52 -10
- package/locales/kn.json +52 -10
- package/locales/ko.json +52 -10
- package/locales/ky.json +51 -9
- package/locales/lo.json +52 -10
- package/locales/lt.json +52 -10
- package/locales/lv.json +51 -9
- package/locales/mk.json +52 -10
- package/locales/ml.json +53 -11
- package/locales/mn.json +52 -10
- package/locales/mr.json +52 -10
- package/locales/ms.json +52 -10
- package/locales/my.json +51 -9
- package/locales/ne.json +52 -10
- package/locales/nl.json +52 -10
- package/locales/no.json +52 -10
- package/locales/or.json +53 -11
- package/locales/pa.json +53 -11
- package/locales/pl.json +51 -9
- package/locales/pt-PT.json +52 -10
- package/locales/pt.json +52 -10
- package/locales/ro.json +52 -10
- package/locales/ru.json +53 -11
- package/locales/si.json +52 -10
- package/locales/sk.json +51 -9
- package/locales/sl.json +51 -9
- package/locales/sq.json +52 -10
- package/locales/sr-Latn.json +52 -10
- package/locales/sr.json +52 -10
- package/locales/sv.json +52 -10
- package/locales/sw.json +51 -9
- package/locales/ta.json +52 -10
- package/locales/te.json +52 -10
- package/locales/th.json +51 -9
- package/locales/tr.json +52 -10
- package/locales/uk.json +52 -10
- package/locales/ur.json +52 -10
- package/locales/uz.json +51 -9
- package/locales/vi.json +52 -10
- package/locales/zh-HK.json +52 -10
- package/locales/zh-TW.json +51 -9
- package/locales/zh.json +52 -10
- package/locales/zu.json +52 -10
- package/models/cpu_profile/CPUProfileDataModel.d.ts +4 -2
- package/models/cpu_profile/CPUProfileDataModel.js.map +1 -1
- package/models/cpu_profile/ProfileTreeModel.d.ts +0 -1
- package/models/cpu_profile/ProfileTreeModel.js +0 -2
- package/models/cpu_profile/ProfileTreeModel.js.map +1 -1
- package/models/trace/LanternComputationData.js +7 -6
- package/models/trace/LanternComputationData.js.map +1 -1
- package/models/trace/Processor.js +23 -16
- package/models/trace/Processor.js.map +1 -1
- package/models/trace/extras/extras-tsconfig.json +0 -2
- package/models/trace/extras/extras.js.map +1 -1
- package/models/trace/handlers/MetaHandler.js +2 -0
- package/models/trace/handlers/MetaHandler.js.map +1 -1
- package/models/trace/handlers/NetworkRequestsHandler.d.ts +0 -5
- package/models/trace/handlers/NetworkRequestsHandler.js +0 -19
- package/models/trace/handlers/NetworkRequestsHandler.js.map +1 -1
- package/models/trace/handlers/SamplesHandler.js +7 -2
- package/models/trace/handlers/SamplesHandler.js.map +1 -1
- package/models/trace/handlers/ScriptsHandler.js.map +1 -1
- package/models/trace/helpers/SamplesIntegrator.js +8 -13
- package/models/trace/helpers/SamplesIntegrator.js.map +1 -1
- package/models/trace/helpers/Trace.js +0 -7
- package/models/trace/helpers/Trace.js.map +1 -1
- package/models/trace/insights/CLSCulprits.d.ts +24 -4
- package/models/trace/insights/CLSCulprits.js +30 -11
- package/models/trace/insights/CLSCulprits.js.map +1 -1
- package/models/trace/insights/DocumentLatency.d.ts +2 -2
- package/models/trace/insights/DocumentLatency.js +2 -2
- package/models/trace/insights/DocumentLatency.js.map +1 -1
- package/models/trace/insights/NetworkDependencyTree.d.ts +31 -5
- package/models/trace/insights/NetworkDependencyTree.js +135 -10
- package/models/trace/insights/NetworkDependencyTree.js.map +1 -1
- package/models/trace/insights/Viewport.d.ts +8 -2
- package/models/trace/insights/Viewport.js +16 -1
- package/models/trace/insights/Viewport.js.map +1 -1
- package/models/trace/lantern/graph/BaseNode.d.ts +5 -2
- package/models/trace/lantern/graph/BaseNode.js +8 -5
- package/models/trace/lantern/graph/BaseNode.js.map +1 -1
- package/models/trace/lantern/graph/PageDependencyGraph.js +46 -3
- package/models/trace/lantern/graph/PageDependencyGraph.js.map +1 -1
- package/models/trace/lantern/simulation/Simulator.js +1 -1
- package/models/trace/lantern/simulation/Simulator.js.map +1 -1
- package/models/trace/trace-tsconfig.json +0 -1
- package/models/trace/trace.d.ts +1 -2
- package/models/trace/trace.js +1 -2
- package/models/trace/trace.js.map +1 -1
- package/models/trace/types/Extensions.d.ts +6 -1
- package/models/trace/types/Extensions.js.map +1 -1
- package/models/trace/types/File.d.ts +15 -1
- package/models/trace/types/File.js.map +1 -1
- package/models/trace/types/TraceEvents.d.ts +7 -4
- package/models/trace/types/TraceEvents.js +4 -3
- package/models/trace/types/TraceEvents.js.map +1 -1
- package/package.json +1 -1
- package/core/platform/ServerTiming.d.ts +0 -31
- package/core/platform/ServerTiming.js +0 -212
- package/core/platform/ServerTiming.js.map +0 -1
- package/models/trace/TracingManager.js.map +0 -1
- package/models/trace/extras/FetchNodes.d.ts +0 -61
- package/models/trace/extras/FetchNodes.js +0 -214
- package/models/trace/extras/FetchNodes.js.map +0 -1
- package/models/trace/extras/Metadata.d.ts +0 -3
- package/models/trace/extras/Metadata.js +0 -71
- package/models/trace/extras/Metadata.js.map +0 -1
- package/models/trace/extras/TimelineJSProfile.d.ts +0 -13
- package/models/trace/extras/TimelineJSProfile.js +0 -55
- package/models/trace/extras/TimelineJSProfile.js.map +0 -1
- package/models/trace/extras/URLForEntry.d.ts +0 -12
- package/models/trace/extras/URLForEntry.js +0 -43
- package/models/trace/extras/URLForEntry.js.map +0 -1
- package/models/trace/handlers/ServerTimingsHandler.d.ts +0 -9
- package/models/trace/handlers/ServerTimingsHandler.js +0 -106
- package/models/trace/handlers/ServerTimingsHandler.js.map +0 -1
- package/models/trace/insights/CumulativeLayoutShift.d.ts +0 -57
- package/models/trace/insights/CumulativeLayoutShift.js +0 -335
- package/models/trace/insights/CumulativeLayoutShift.js.map +0 -1
- package/models/trace/insights/InsightRunners.d.ts +0 -9
- package/models/trace/insights/InsightRunners.js +0 -13
- package/models/trace/insights/InsightRunners.js.map +0 -1
- package/models/trace/insights/LargestContentfulPaint.d.ts +0 -38
- package/models/trace/insights/LargestContentfulPaint.js +0 -113
- package/models/trace/insights/LargestContentfulPaint.js.map +0 -1
- package/models/trace/insights/ThirdPartyWeb.d.ts +0 -13
- package/models/trace/insights/ThirdPartyWeb.js +0 -42
- package/models/trace/insights/ThirdPartyWeb.js.map +0 -1
- package/models/trace/root-causes/LayoutShift.d.ts +0 -125
- package/models/trace/root-causes/LayoutShift.js +0 -519
- package/models/trace/root-causes/LayoutShift.js.map +0 -1
- package/models/trace/root-causes/RootCauses.d.ts +0 -15
- package/models/trace/root-causes/RootCauses.js +0 -12
- package/models/trace/root-causes/RootCauses.js.map +0 -1
- package/models/trace/root-causes/bundle-tsconfig.json +0 -1
- package/models/trace/root-causes/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -42
- package/models/trace/root-causes/root-causes-tsconfig.json +0 -55
- package/models/trace/root-causes/root-causes.d.ts +0 -1
- package/models/trace/root-causes/root-causes.js +0 -5
- package/models/trace/root-causes/root-causes.js.map +0 -1
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Chromium Authors. All rights reserved.
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
import * as ThirdPartyWeb from '../../../third_party/third-party-web/third-party-web.js';
|
|
5
|
-
import * as Extras from '../extras/extras.js';
|
|
6
|
-
import * as Helpers from '../helpers/helpers.js';
|
|
7
|
-
export function deps() {
|
|
8
|
-
return ['Meta', 'NetworkRequests', 'Renderer', 'ImagePainting'];
|
|
9
|
-
}
|
|
10
|
-
function getRelatedEvents(summaries, firstPartyEntity) {
|
|
11
|
-
const events = [];
|
|
12
|
-
for (const [entity, requests] of summaries.requestsByEntity.entries()) {
|
|
13
|
-
if (entity !== firstPartyEntity) {
|
|
14
|
-
events.push(...requests);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return events;
|
|
18
|
-
}
|
|
19
|
-
export function generateInsight(parsedTrace, context) {
|
|
20
|
-
const networkRequests = parsedTrace.NetworkRequests.byTime.filter(event => {
|
|
21
|
-
if (!context.navigation) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
if (event.args.data.frame !== context.frameId) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
return Helpers.Timing.eventIsInBounds(event, context.bounds);
|
|
28
|
-
});
|
|
29
|
-
const { entityByRequest, madeUpEntityCache, summaries } = Extras.ThirdParties.getSummariesAndEntitiesForTraceBounds(parsedTrace, context.bounds, networkRequests);
|
|
30
|
-
const firstPartyUrl = context.navigation?.args.data?.documentLoaderURL ?? parsedTrace.Meta.mainFrameURL;
|
|
31
|
-
const firstPartyEntity = ThirdPartyWeb.ThirdPartyWeb.getEntity(firstPartyUrl) ||
|
|
32
|
-
Extras.ThirdParties.makeUpEntity(madeUpEntityCache, firstPartyUrl);
|
|
33
|
-
return {
|
|
34
|
-
relatedEvents: getRelatedEvents(summaries, firstPartyEntity),
|
|
35
|
-
entityByRequest,
|
|
36
|
-
requestsByEntity: summaries.requestsByEntity,
|
|
37
|
-
summaryByRequest: summaries.byRequest,
|
|
38
|
-
summaryByEntity: summaries.byEntity,
|
|
39
|
-
firstPartyEntity,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=ThirdPartyWeb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThirdPartyWeb.js","sourceRoot":"","sources":["../../../../../../../front_end/models/trace/insights/ThirdPartyWeb.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,yEAAyE;AACzE,6BAA6B;AAE7B,OAAO,KAAK,aAAa,MAAM,yDAAyD,CAAC;AACzF,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAE9C,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAKjD,MAAM,UAAU,IAAI;IAClB,OAAO,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;AAClE,CAAC;AAWD,SAAS,gBAAgB,CACrB,SAA0C,EAC1C,gBAAsD;IACxD,MAAM,MAAM,GAAG,EAAE,CAAC;IAElB,KAAK,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,CAAC;QACtE,IAAI,MAAM,KAAK,gBAAgB,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,eAAe,CAC3B,WAAsC,EAAE,OAA0B;IACpE,MAAM,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;QACxE,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;YACxB,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC;YAC9C,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;IAEH,MAAM,EAAC,eAAe,EAAE,iBAAiB,EAAE,SAAS,EAAC,GAAG,MAAM,CAAC,YAAY,CAAC,qCAAqC,CAC7G,WAAyC,EAAE,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAEhF,MAAM,aAAa,GAAG,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,iBAAiB,IAAI,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;IACxG,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,SAAS,CAAC,aAAa,CAAC;QACzE,MAAM,CAAC,YAAY,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IAEvE,OAAO;QACL,aAAa,EAAE,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,CAAC;QAC5D,eAAe;QACf,gBAAgB,EAAE,SAAS,CAAC,gBAAgB;QAC5C,gBAAgB,EAAE,SAAS,CAAC,SAAS;QACrC,eAAe,EAAE,SAAS,CAAC,QAAQ;QACnC,gBAAgB;KACjB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright 2024 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport * as ThirdPartyWeb from '../../../third_party/third-party-web/third-party-web.js';\nimport * as Extras from '../extras/extras.js';\nimport type * as Handlers from '../handlers/handlers.js';\nimport * as Helpers from '../helpers/helpers.js';\nimport type * as Types from '../types/types.js';\n\nimport type {InsightResult, InsightSetContext, RequiredData} from './types.js';\n\nexport function deps(): ['Meta', 'NetworkRequests', 'Renderer', 'ImagePainting'] {\n return ['Meta', 'NetworkRequests', 'Renderer', 'ImagePainting'];\n}\n\nexport type ThirdPartyWebInsightResult = InsightResult<{\n entityByRequest: Map<Types.Events.SyntheticNetworkRequest, Extras.ThirdParties.Entity>,\n requestsByEntity: Map<Extras.ThirdParties.Entity, Types.Events.SyntheticNetworkRequest[]>,\n summaryByRequest: Map<Types.Events.SyntheticNetworkRequest, Extras.ThirdParties.Summary>,\n summaryByEntity: Map<Extras.ThirdParties.Entity, Extras.ThirdParties.Summary>,\n /** The entity for this navigation's URL. Any other entity is from a third party. */\n firstPartyEntity?: Extras.ThirdParties.Entity,\n}>;\n\nfunction getRelatedEvents(\n summaries: Extras.ThirdParties.SummaryMaps,\n firstPartyEntity: Extras.ThirdParties.Entity|undefined): Types.Events.Event[] {\n const events = [];\n\n for (const [entity, requests] of summaries.requestsByEntity.entries()) {\n if (entity !== firstPartyEntity) {\n events.push(...requests);\n }\n }\n\n return events;\n}\n\nexport function generateInsight(\n parsedTrace: RequiredData<typeof deps>, context: InsightSetContext): ThirdPartyWebInsightResult {\n const networkRequests = parsedTrace.NetworkRequests.byTime.filter(event => {\n if (!context.navigation) {\n return false;\n }\n\n if (event.args.data.frame !== context.frameId) {\n return false;\n }\n\n return Helpers.Timing.eventIsInBounds(event, context.bounds);\n });\n\n const {entityByRequest, madeUpEntityCache, summaries} = Extras.ThirdParties.getSummariesAndEntitiesForTraceBounds(\n parsedTrace as Handlers.Types.ParsedTrace, context.bounds, networkRequests);\n\n const firstPartyUrl = context.navigation?.args.data?.documentLoaderURL ?? parsedTrace.Meta.mainFrameURL;\n const firstPartyEntity = ThirdPartyWeb.ThirdPartyWeb.getEntity(firstPartyUrl) ||\n Extras.ThirdParties.makeUpEntity(madeUpEntityCache, firstPartyUrl);\n\n return {\n relatedEvents: getRelatedEvents(summaries, firstPartyEntity),\n entityByRequest,\n requestsByEntity: summaries.requestsByEntity,\n summaryByRequest: summaries.byRequest,\n summaryByEntity: summaries.byEntity,\n firstPartyEntity,\n };\n}\n"]}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import type * as Protocol from '../../../generated/protocol.js';
|
|
2
|
-
import type { ParsedTrace } from '../handlers/types.js';
|
|
3
|
-
import * as Types from '../types/types.js';
|
|
4
|
-
import type { RootCauseProtocolInterface } from './RootCauses.js';
|
|
5
|
-
export type CSSDimensions = {
|
|
6
|
-
width?: string;
|
|
7
|
-
height?: string;
|
|
8
|
-
aspectRatio?: string;
|
|
9
|
-
};
|
|
10
|
-
export interface UnsizedMedia {
|
|
11
|
-
node: Protocol.DOM.Node;
|
|
12
|
-
authoredDimensions?: CSSDimensions;
|
|
13
|
-
computedDimensions: CSSDimensions;
|
|
14
|
-
}
|
|
15
|
-
export interface InjectedIframe {
|
|
16
|
-
iframe: Protocol.DOM.Node;
|
|
17
|
-
}
|
|
18
|
-
export interface RootCauseRequest {
|
|
19
|
-
request: Types.Events.SyntheticNetworkRequest;
|
|
20
|
-
initiator?: Protocol.Network.Initiator;
|
|
21
|
-
}
|
|
22
|
-
export interface FontChange extends RootCauseRequest {
|
|
23
|
-
fontFace: Protocol.CSS.FontFace;
|
|
24
|
-
}
|
|
25
|
-
export interface RenderBlockingRequest extends RootCauseRequest {
|
|
26
|
-
}
|
|
27
|
-
export interface LayoutShiftRootCausesData {
|
|
28
|
-
unsizedMedia: UnsizedMedia[];
|
|
29
|
-
iframes: InjectedIframe[];
|
|
30
|
-
fontChanges: FontChange[];
|
|
31
|
-
renderBlockingRequests: RenderBlockingRequest[];
|
|
32
|
-
scriptStackTrace: Types.Events.CallFrame[];
|
|
33
|
-
}
|
|
34
|
-
interface Options {
|
|
35
|
-
/** Checking iframe root causes can be an expensive operation, so it is disabled by default. */
|
|
36
|
-
enableIframeRootCauses?: boolean;
|
|
37
|
-
}
|
|
38
|
-
export declare class LayoutShiftRootCauses {
|
|
39
|
-
#private;
|
|
40
|
-
constructor(protocolInterface: RootCauseProtocolInterface, options?: Options);
|
|
41
|
-
/**
|
|
42
|
-
* Calculates the potential root causes for a given layout shift event. Once
|
|
43
|
-
* calculated, this data is cached.
|
|
44
|
-
* Note: because you need all layout shift data at once to calculate these
|
|
45
|
-
* correctly, this function will parse the root causes for _all_ layout shift
|
|
46
|
-
* events the first time that it's called. That then populates the cache for
|
|
47
|
-
* each shift, so any subsequent calls are just a constant lookup.
|
|
48
|
-
*/
|
|
49
|
-
rootCausesForEvent(modelData: ParsedTrace, event: Types.Events.LayoutShift): Promise<Readonly<LayoutShiftRootCausesData> | null>;
|
|
50
|
-
/**
|
|
51
|
-
* Determines potential root causes for shifts
|
|
52
|
-
*/
|
|
53
|
-
blameShifts(layoutShifts: Types.Events.LayoutShift[], modelData: ParsedTrace): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* "LayoutInvalidations" are a set of trace events dispatched in Blink under the name
|
|
56
|
-
* "layoutInvalidationTracking", which track invalidations on the "Layout"stage of the
|
|
57
|
-
* rendering pipeline. This function utilizes this event to flag potential root causes
|
|
58
|
-
* to layout shifts.
|
|
59
|
-
*/
|
|
60
|
-
linkShiftsToLayoutInvalidations(layoutShifts: Types.Events.LayoutShift[], modelData: ParsedTrace): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
* For every shift looks up the initiator of its corresponding Layout event. This initiator
|
|
63
|
-
* is assigned by the RendererHandler and contains the stack trace of the point in a script
|
|
64
|
-
* that caused a style recalculation or a relayout. This stack trace is added to the shift's
|
|
65
|
-
* potential root causes.
|
|
66
|
-
* Note that a Layout cannot always be linked to a script, in that case, we cannot add a
|
|
67
|
-
* "script causing reflow" as a potential root cause to the corresponding shift.
|
|
68
|
-
*/
|
|
69
|
-
linkShiftsToLayoutEvents(layoutShifts: Types.Events.LayoutShift[], modelData: ParsedTrace): void;
|
|
70
|
-
/**
|
|
71
|
-
* Given a LayoutInvalidation trace event, determines if it was dispatched
|
|
72
|
-
* because a media element without dimensions was resized.
|
|
73
|
-
*/
|
|
74
|
-
getUnsizedMediaRootCause(layoutInvalidation: Types.Events.LayoutInvalidationTracking, layoutInvalidationNodeId: Protocol.DOM.NodeId): Promise<UnsizedMedia | null>;
|
|
75
|
-
/**
|
|
76
|
-
* Given a LayoutInvalidation trace event, determines if it was dispatched
|
|
77
|
-
* because a node, which is an ancestor to an iframe, was injected.
|
|
78
|
-
*/
|
|
79
|
-
getIframeRootCause(layoutInvalidation: Types.Events.LayoutInvalidationTracking, layoutInvalidationNodeId: Protocol.DOM.NodeId): Promise<InjectedIframe | null>;
|
|
80
|
-
getNodeDetails(nodeId: Protocol.DOM.NodeId): Promise<Protocol.DOM.Node | null>;
|
|
81
|
-
/**
|
|
82
|
-
* Given a layout invalidation event and a sorted array, returns the subset of requests that arrived within a
|
|
83
|
-
* 500ms window before the layout invalidation.
|
|
84
|
-
*/
|
|
85
|
-
requestsInInvalidationWindow(layoutInvalidation: Types.Events.LayoutInvalidationTracking | Types.Events.ScheduleStyleInvalidationTracking, modelData: ParsedTrace): RootCauseRequest[];
|
|
86
|
-
/**
|
|
87
|
-
* Given a LayoutInvalidation trace event, determines if it was dispatched
|
|
88
|
-
* because fonts were changed and if so returns the information of all network
|
|
89
|
-
* request with which the fonts were possibly fetched, if any. The computed
|
|
90
|
-
* network requests are cached for the corresponding prepaint event, meaning
|
|
91
|
-
* that other LayoutInvalidation events that correspond to the same prepaint
|
|
92
|
-
* are not processed and the cached network requests for the prepaint is
|
|
93
|
-
* returned instead.
|
|
94
|
-
*/
|
|
95
|
-
getFontChangeRootCause(layoutInvalidation: Types.Events.LayoutInvalidationTracking | Types.Events.ScheduleStyleInvalidationTracking, nextPrePaint: Types.Events.PrePaint, modelData: ParsedTrace): FontChange[] | null;
|
|
96
|
-
/**
|
|
97
|
-
* Given the requests that arrived within a 500ms window before the layout invalidation, returns the font
|
|
98
|
-
* requests of them.
|
|
99
|
-
*/
|
|
100
|
-
getFontRequestsInInvalidationWindow(requestsInInvalidationWindow: RootCauseRequest[]): FontChange[];
|
|
101
|
-
/**
|
|
102
|
-
* Given a LayoutInvalidation trace event, determines if it arrived within a 500ms window before the layout
|
|
103
|
-
* invalidation and if so returns the information of all network request, if any. The computed network
|
|
104
|
-
* requests are cached for the corresponding prepaint event, meaning that other LayoutInvalidation events
|
|
105
|
-
* that correspond to the same prepaint are not processed and the cached network requests for the prepaint is
|
|
106
|
-
* returned instead.
|
|
107
|
-
*/
|
|
108
|
-
getRenderBlockRootCause(layoutInvalidation: Types.Events.LayoutInvalidationTracking | Types.Events.ScheduleStyleInvalidationTracking, nextPrePaint: Types.Events.PrePaint, modelData: ParsedTrace): RenderBlockingRequest[] | null;
|
|
109
|
-
/**
|
|
110
|
-
* Returns a function that retrieves the active value of a given
|
|
111
|
-
* CSS property within the matched styles of the param node.
|
|
112
|
-
* The first occurence within the matched styles is returned and the
|
|
113
|
-
* value is looked up in the following order, which follows CSS
|
|
114
|
-
* specificity:
|
|
115
|
-
* 1. Inline styles.
|
|
116
|
-
* 2. CSS rules matching this node, from all applicable stylesheets.
|
|
117
|
-
* 3. Attribute defined styles.
|
|
118
|
-
*/
|
|
119
|
-
nodeMatchedStylesPropertyGetter(node: Protocol.DOM.Node): Promise<((property: string) => string | null)>;
|
|
120
|
-
/**
|
|
121
|
-
* Returns the CSS dimensions set to the node from its matched styles.
|
|
122
|
-
*/
|
|
123
|
-
getNodeAuthoredDimensions(node: Protocol.DOM.Node): Promise<CSSDimensions>;
|
|
124
|
-
}
|
|
125
|
-
export {};
|