lighthouse 12.0.0-dev.20240610 → 12.0.0-dev.20240612
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/core/audits/byte-efficiency/byte-efficiency-audit.d.ts +2 -2
- package/core/audits/byte-efficiency/byte-efficiency-audit.js +2 -2
- package/core/audits/byte-efficiency/render-blocking-resources.d.ts +3 -3
- package/core/audits/byte-efficiency/render-blocking-resources.js +4 -4
- package/core/audits/dobetterweb/uses-http2.d.ts +2 -2
- package/core/audits/dobetterweb/uses-http2.js +2 -2
- package/core/audits/long-tasks.d.ts +7 -6
- package/core/audits/long-tasks.js +5 -4
- package/core/audits/prioritize-lcp-image.d.ts +1 -1
- package/core/computed/document-urls.js +3 -2
- package/core/computed/load-simulator.d.ts +4 -4
- package/core/computed/load-simulator.js +3 -3
- package/core/computed/main-resource.js +3 -2
- package/core/computed/metrics/lantern-first-contentful-paint.d.ts +4 -4
- package/core/computed/metrics/lantern-first-contentful-paint.js +3 -3
- package/core/computed/metrics/lantern-interactive.d.ts +4 -4
- package/core/computed/metrics/lantern-interactive.js +3 -3
- package/core/computed/metrics/lantern-largest-contentful-paint.d.ts +4 -4
- package/core/computed/metrics/lantern-largest-contentful-paint.js +3 -3
- package/core/computed/metrics/lantern-max-potential-fid.d.ts +4 -4
- package/core/computed/metrics/lantern-max-potential-fid.js +3 -3
- package/core/computed/metrics/lantern-metric.d.ts +4 -3
- package/core/computed/metrics/lantern-metric.js +4 -4
- package/core/computed/metrics/lantern-speed-index.d.ts +4 -4
- package/core/computed/metrics/lantern-speed-index.js +3 -3
- package/core/computed/metrics/lantern-total-blocking-time.d.ts +4 -4
- package/core/computed/metrics/lantern-total-blocking-time.js +3 -3
- package/core/computed/metrics/total-blocking-time.js +3 -1
- package/core/computed/network-analysis.js +2 -2
- package/core/computed/page-dependency-graph.d.ts +2 -2
- package/core/computed/page-dependency-graph.js +6 -6
- package/core/computed/processed-navigation.d.ts +1 -1
- package/core/computed/tbt-impact-tasks.js +4 -2
- package/core/config/constants.d.ts +28 -53
- package/core/config/constants.js +2 -43
- package/core/lib/asset-saver.js +2 -2
- package/core/lib/lantern/{base-node.d.ts → BaseNode.d.ts} +7 -9
- package/core/lib/lantern/{base-node.js → BaseNode.js} +6 -6
- package/core/lib/lantern/BaseNode.test.js +385 -0
- package/core/lib/lantern/CpuNode.d.ts +43 -0
- package/core/lib/lantern/{cpu-node.js → CpuNode.js} +8 -9
- package/core/lib/lantern/{lantern-error.d.ts → LanternError.d.ts} +1 -1
- package/core/lib/lantern/{metric.d.ts → Metric.d.ts} +17 -17
- package/core/lib/lantern/{metric.js → Metric.js} +10 -12
- package/core/lib/lantern/{network-node.d.ts → NetworkNode.d.ts} +4 -5
- package/core/lib/lantern/{network-node.js → NetworkNode.js} +4 -5
- package/core/lib/lantern/{page-dependency-graph.d.ts → PageDependencyGraph.d.ts} +22 -11
- package/core/lib/lantern/{page-dependency-graph.js → PageDependencyGraph.js} +56 -22
- package/core/lib/lantern/PageDependencyGraph.test.js +654 -0
- package/core/lib/lantern/{tbt-utils.d.ts → TBTUtils.d.ts} +1 -1
- package/core/lib/lantern/TBTUtils.test.d.ts +2 -0
- package/core/lib/lantern/TBTUtils.test.js +130 -0
- package/core/lib/lantern/{trace-engine-computation-data.d.ts → TraceEngineComputationData.d.ts} +7 -7
- package/core/lib/lantern/{trace-engine-computation-data.js → TraceEngineComputationData.js} +18 -16
- package/core/lib/lantern/lantern.d.ts +19 -7
- package/core/lib/lantern/lantern.js +21 -1
- package/core/lib/lantern/metrics/{first-contentful-paint.d.ts → FirstContentfulPaint.d.ts} +11 -11
- package/core/lib/lantern/metrics/{first-contentful-paint.js → FirstContentfulPaint.js} +8 -10
- package/core/lib/lantern/metrics/FirstContentfulPaint.test.js +54 -0
- package/core/lib/lantern/metrics/Interactive.d.ts +20 -0
- package/core/lib/lantern/metrics/{interactive.js → Interactive.js} +14 -17
- package/core/lib/lantern/metrics/Interactive.test.js +56 -0
- package/core/lib/lantern/metrics/LargestContentfulPaint.d.ts +19 -0
- package/core/lib/lantern/metrics/{largest-contentful-paint.js → LargestContentfulPaint.js} +12 -15
- package/core/lib/lantern/metrics/LargestContentfulPaint.test.js +42 -0
- package/core/lib/lantern/metrics/MaxPotentialFID.d.ts +24 -0
- package/core/lib/lantern/metrics/{max-potential-fid.js → MaxPotentialFID.js} +12 -13
- package/core/lib/lantern/metrics/MetricTestUtils.d.ts +19 -0
- package/core/lib/lantern/metrics/MetricTestUtils.js +48 -0
- package/core/lib/lantern/metrics/{speed-index.d.ts → SpeedIndex.d.ts} +7 -13
- package/core/lib/lantern/metrics/{speed-index.js → SpeedIndex.js} +12 -14
- package/core/lib/lantern/metrics/SpeedIndex.test.js +83 -0
- package/core/lib/lantern/metrics/TotalBlockingTime.d.ts +25 -0
- package/core/lib/lantern/metrics/{total-blocking-time.js → TotalBlockingTime.js} +13 -16
- package/core/lib/lantern/metrics/__snapshots__/first-contentful-paint-test.js.snap +11 -0
- package/core/lib/lantern/metrics/__snapshots__/interactive-test.js.snap +17 -0
- package/core/lib/lantern/metrics/metrics.d.ts +9 -0
- package/core/lib/lantern/metrics/metrics.js +16 -0
- package/core/lib/lantern/{simulator/connection-pool.d.ts → simulation/ConnectionPool.d.ts} +5 -5
- package/core/lib/lantern/{simulator/connection-pool.js → simulation/ConnectionPool.js} +3 -3
- package/core/lib/lantern/simulation/ConnectionPool.test.js +195 -0
- package/core/lib/lantern/simulation/Constants.d.ts +52 -0
- package/core/lib/lantern/simulation/Constants.js +48 -0
- package/core/lib/lantern/{simulator/dns-cache.d.ts → simulation/DNSCache.d.ts} +2 -2
- package/core/lib/lantern/{simulator/dns-cache.js → simulation/DNSCache.js} +1 -1
- package/core/lib/lantern/simulation/DNSCache.test.js +72 -0
- package/core/lib/lantern/{simulator/network-analyzer.d.ts → simulation/NetworkAnalyzer.d.ts} +8 -8
- package/core/lib/lantern/{simulator/network-analyzer.js → simulation/NetworkAnalyzer.js} +3 -3
- package/core/lib/lantern/simulation/NetworkAnalyzer.test.js +475 -0
- package/core/lib/lantern/{simulator/simulator-timing-map.d.ts → simulation/SimulationTimingMap.d.ts} +7 -7
- package/core/lib/lantern/{simulator/simulator-timing-map.js → simulation/SimulationTimingMap.js} +5 -6
- package/core/lib/lantern/{simulator/simulator.d.ts → simulation/Simulator.d.ts} +13 -15
- package/core/lib/lantern/{simulator/simulator.js → simulation/Simulator.js} +29 -30
- package/core/lib/lantern/simulation/Simulator.test.js +434 -0
- package/core/lib/lantern/simulation/TCPConnection.test.d.ts +2 -0
- package/core/lib/lantern/simulation/TCPConnection.test.js +374 -0
- package/core/lib/lantern/{simulator/tcp-connection.d.ts → simulation/TcpConnection.d.ts} +2 -2
- package/core/lib/lantern/{simulator/tcp-connection.js → simulation/TcpConnection.js} +1 -1
- package/core/lib/lantern/simulation/simulation.d.ts +21 -0
- package/core/lib/lantern/simulation/simulation.js +28 -0
- package/core/lib/lantern/types/lantern.d.ts +81 -9
- package/core/lib/lantern-trace-saver.d.ts +4 -4
- package/core/lib/lantern-trace-saver.js +3 -3
- package/core/lib/navigation-error.js +3 -3
- package/core/lib/network-recorder.js +2 -2
- package/core/lib/network-request.d.ts +1 -1
- package/core/lib/network-request.js +1 -1
- package/package.json +5 -5
- package/tsconfig.json +10 -8
- package/types/artifacts.d.ts +3 -10
- package/types/gatherer.d.ts +1 -1
- package/core/lib/lantern/cpu-node.d.ts +0 -44
- package/core/lib/lantern/metrics/interactive.d.ts +0 -26
- package/core/lib/lantern/metrics/largest-contentful-paint.d.ts +0 -19
- package/core/lib/lantern/metrics/max-potential-fid.d.ts +0 -30
- package/core/lib/lantern/metrics/total-blocking-time.d.ts +0 -31
- /package/core/lib/lantern/{lantern-error.js → LanternError.js} +0 -0
- /package/core/lib/lantern/{tbt-utils.js → TBTUtils.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lighthouse",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "12.0.0-dev.
|
|
4
|
+
"version": "12.0.0-dev.20240612",
|
|
5
5
|
"description": "Automated auditing, performance metrics, and best practices for the web.",
|
|
6
6
|
"main": "./core/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -184,10 +184,10 @@
|
|
|
184
184
|
"@paulirish/trace_engine": "^0.0.23",
|
|
185
185
|
"@sentry/node": "^6.17.4",
|
|
186
186
|
"axe-core": "^4.9.1",
|
|
187
|
-
"chrome-launcher": "^1.1.
|
|
187
|
+
"chrome-launcher": "^1.1.2",
|
|
188
188
|
"configstore": "^5.0.1",
|
|
189
189
|
"csp_evaluator": "1.1.1",
|
|
190
|
-
"devtools-protocol": "0.0.
|
|
190
|
+
"devtools-protocol": "0.0.1312386",
|
|
191
191
|
"enquirer": "^2.3.6",
|
|
192
192
|
"http-link-header": "^1.1.1",
|
|
193
193
|
"intl-messageformat": "^10.5.3",
|
|
@@ -211,8 +211,8 @@
|
|
|
211
211
|
"yargs-parser": "^21.0.0"
|
|
212
212
|
},
|
|
213
213
|
"resolutions": {
|
|
214
|
-
"puppeteer/**/devtools-protocol": "0.0.
|
|
215
|
-
"puppeteer-core/**/devtools-protocol": "0.0.
|
|
214
|
+
"puppeteer/**/devtools-protocol": "0.0.1312386",
|
|
215
|
+
"puppeteer-core/**/devtools-protocol": "0.0.1312386"
|
|
216
216
|
},
|
|
217
217
|
"repository": "GoogleChrome/lighthouse",
|
|
218
218
|
"keywords": [
|
package/tsconfig.json
CHANGED
|
@@ -66,13 +66,15 @@
|
|
|
66
66
|
"core/test/lib/emulation-test.js",
|
|
67
67
|
"core/test/lib/i18n/i18n-test.js",
|
|
68
68
|
"core/test/lib/icons-test.js",
|
|
69
|
-
|
|
70
|
-
"core/
|
|
71
|
-
"core/
|
|
72
|
-
"core/
|
|
73
|
-
"core/
|
|
74
|
-
"core/
|
|
75
|
-
"core/
|
|
69
|
+
// TODO(15841): remove when importing Lantern from npm
|
|
70
|
+
"core/lib/lantern/BaseNode.test.js",
|
|
71
|
+
"core/lib/lantern/metrics/*.test.js",
|
|
72
|
+
"core/lib/lantern/PageDependencyGraph.test.js",
|
|
73
|
+
"core/lib/lantern/simulation/ConnectionPool.test.js",
|
|
74
|
+
"core/lib/lantern/simulation/DNSCache.test.js",
|
|
75
|
+
"core/lib/lantern/simulation/NetworkAnalyzer.test.js",
|
|
76
|
+
"core/lib/lantern/simulation/Simulator.test.js",
|
|
77
|
+
// ------ done TODO
|
|
76
78
|
"core/test/lib/lh-element-test.js",
|
|
77
79
|
"core/test/lib/lighthouse-compatibility-test.js",
|
|
78
80
|
"core/test/lib/manifest-parser-test.js",
|
|
@@ -109,6 +111,6 @@
|
|
|
109
111
|
"core/test/computed/metrics/interactive-test.js",
|
|
110
112
|
"core/test/computed/tbt-impact-tasks-test.js",
|
|
111
113
|
"core/test/fixtures/config-plugins/lighthouse-plugin-simple/plugin-simple.js",
|
|
112
|
-
"core/
|
|
114
|
+
"core/lib/lantern/metrics/MetricTestUtils.js",
|
|
113
115
|
],
|
|
114
116
|
}
|
package/types/artifacts.d.ts
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
import {Protocol as Crdp} from 'devtools-protocol/types/protocol.js';
|
|
8
8
|
import * as TraceEngine from '@paulirish/trace_engine';
|
|
9
|
+
import * as Lantern from '../core/lib/lantern/lantern.js';
|
|
9
10
|
import {LayoutShiftRootCausesData} from '@paulirish/trace_engine/models/trace/root-causes/LayoutShift.js';
|
|
10
11
|
|
|
11
12
|
import {parseManifest} from '../core/lib/manifest-parser.js';
|
|
12
|
-
import {Simulator} from '../core/lib/lantern/simulator/simulator.js';
|
|
13
13
|
import {LighthouseError} from '../core/lib/lh-error.js';
|
|
14
14
|
import {NetworkRequest as _NetworkRequest} from '../core/lib/network-request.js';
|
|
15
15
|
import speedline from 'speedline-core';
|
|
@@ -565,7 +565,7 @@ declare module Artifacts {
|
|
|
565
565
|
trace: Trace;
|
|
566
566
|
settings: Audit.Context['settings'];
|
|
567
567
|
gatherContext: Artifacts['GatherContext'];
|
|
568
|
-
simulator?: InstanceType<typeof Simulator>;
|
|
568
|
+
simulator?: InstanceType<typeof Lantern.Simulation.Simulator>;
|
|
569
569
|
URL: Artifacts['URL'];
|
|
570
570
|
}
|
|
571
571
|
|
|
@@ -591,14 +591,7 @@ declare module Artifacts {
|
|
|
591
591
|
throughput: number;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
|
|
595
|
-
timing: number;
|
|
596
|
-
timestamp?: never;
|
|
597
|
-
optimisticEstimate: Gatherer.Simulation.Result
|
|
598
|
-
pessimisticEstimate: Gatherer.Simulation.Result;
|
|
599
|
-
optimisticGraph: Gatherer.Simulation.GraphNode;
|
|
600
|
-
pessimisticGraph: Gatherer.Simulation.GraphNode;
|
|
601
|
-
}
|
|
594
|
+
type LanternMetric = Lantern.Metrics.Result<Artifacts.NetworkRequest>;
|
|
602
595
|
|
|
603
596
|
type Speedline = speedline.Output<'speedIndex'>;
|
|
604
597
|
|
package/types/gatherer.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import Config from './config.js';
|
|
|
17
17
|
import Result from './lhr/lhr.js';
|
|
18
18
|
import Protocol from './protocol.js';
|
|
19
19
|
import Puppeteer from './puppeteer.js';
|
|
20
|
-
import * as Lantern from '../core/lib/lantern/
|
|
20
|
+
import * as Lantern from '../core/lib/lantern/lantern.js';
|
|
21
21
|
|
|
22
22
|
type CrdpEvents = CrdpMappings.Events;
|
|
23
23
|
type CrdpCommands = CrdpMappings.Commands;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @template [T=any]
|
|
3
|
-
* @extends {BaseNode<T>}
|
|
4
|
-
*/
|
|
5
|
-
export class CPUNode<T = any> extends BaseNode<T> {
|
|
6
|
-
/**
|
|
7
|
-
* @param {LH.TraceEvent} parentEvent
|
|
8
|
-
* @param {LH.TraceEvent[]=} childEvents
|
|
9
|
-
* @param {number=} correctedEndTs
|
|
10
|
-
*/
|
|
11
|
-
constructor(parentEvent: LH.TraceEvent, childEvents?: LH.TraceEvent[] | undefined, correctedEndTs?: number | undefined);
|
|
12
|
-
_event: LH.TraceEvent;
|
|
13
|
-
_childEvents: LH.TraceEvent[];
|
|
14
|
-
_correctedEndTs: number | undefined;
|
|
15
|
-
get type(): "cpu";
|
|
16
|
-
/**
|
|
17
|
-
* @return {number}
|
|
18
|
-
*/
|
|
19
|
-
get duration(): number;
|
|
20
|
-
/**
|
|
21
|
-
* @return {LH.TraceEvent}
|
|
22
|
-
*/
|
|
23
|
-
get event(): LH.TraceEvent;
|
|
24
|
-
/**
|
|
25
|
-
* @return {LH.TraceEvent[]}
|
|
26
|
-
*/
|
|
27
|
-
get childEvents(): LH.TraceEvent[];
|
|
28
|
-
/**
|
|
29
|
-
* Returns true if this node contains a Layout task.
|
|
30
|
-
* @return {boolean}
|
|
31
|
-
*/
|
|
32
|
-
didPerformLayout(): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Returns the script URLs that had their EvaluateScript events occur in this task.
|
|
35
|
-
*/
|
|
36
|
-
getEvaluateScriptURLs(): Set<string>;
|
|
37
|
-
/**
|
|
38
|
-
* @return {CPUNode}
|
|
39
|
-
*/
|
|
40
|
-
cloneWithoutRelationships(): CPUNode;
|
|
41
|
-
}
|
|
42
|
-
import { BaseNode } from './base-node.js';
|
|
43
|
-
import * as LH from '../../../types/lh.js';
|
|
44
|
-
//# sourceMappingURL=cpu-node.d.ts.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type Node = import('../base-node.js').Node;
|
|
2
|
-
export class Interactive extends Metric {
|
|
3
|
-
/**
|
|
4
|
-
* @param {Node} dependencyGraph
|
|
5
|
-
* @return {Node}
|
|
6
|
-
*/
|
|
7
|
-
static getOptimisticGraph(dependencyGraph: Node): Node;
|
|
8
|
-
/**
|
|
9
|
-
* @param {Node} dependencyGraph
|
|
10
|
-
* @return {Node}
|
|
11
|
-
*/
|
|
12
|
-
static getPessimisticGraph(dependencyGraph: Node): Node;
|
|
13
|
-
/**
|
|
14
|
-
* @param {LH.Gatherer.Simulation.Result} simulationResult
|
|
15
|
-
* @param {import('../metric.js').Extras} extras
|
|
16
|
-
* @return {LH.Gatherer.Simulation.Result}
|
|
17
|
-
*/
|
|
18
|
-
static getEstimateFromSimulation(simulationResult: LH.Gatherer.Simulation.Result, extras: import('../metric.js').Extras): LH.Gatherer.Simulation.Result;
|
|
19
|
-
/**
|
|
20
|
-
* @param {LH.Gatherer.Simulation.Result['nodeTimings']} nodeTimings
|
|
21
|
-
* @return {number}
|
|
22
|
-
*/
|
|
23
|
-
static getLastLongTaskEndTime(nodeTimings: LH.Gatherer.Simulation.Result['nodeTimings'], duration?: number): number;
|
|
24
|
-
}
|
|
25
|
-
import { Metric } from '../metric.js';
|
|
26
|
-
//# sourceMappingURL=interactive.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type Node = import('../base-node.js').Node;
|
|
2
|
-
/** @typedef {import('../base-node.js').Node} Node */
|
|
3
|
-
export class LargestContentfulPaint extends Metric {
|
|
4
|
-
/**
|
|
5
|
-
* Low priority image nodes are usually offscreen and very unlikely to be the
|
|
6
|
-
* resource that is required for LCP. Our LCP graphs include everything except for these images.
|
|
7
|
-
*
|
|
8
|
-
* @param {Node} node
|
|
9
|
-
* @return {boolean}
|
|
10
|
-
*/
|
|
11
|
-
static isNotLowPriorityImageNode(node: Node): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* @param {LH.Gatherer.Simulation.Result} simulationResult
|
|
14
|
-
* @return {LH.Gatherer.Simulation.Result}
|
|
15
|
-
*/
|
|
16
|
-
static getEstimateFromSimulation(simulationResult: LH.Gatherer.Simulation.Result): LH.Gatherer.Simulation.Result;
|
|
17
|
-
}
|
|
18
|
-
import { Metric } from '../metric.js';
|
|
19
|
-
//# sourceMappingURL=largest-contentful-paint.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export type Node = import('../base-node.js').Node;
|
|
2
|
-
/** @typedef {import('../base-node.js').Node} Node */
|
|
3
|
-
export class MaxPotentialFID extends Metric {
|
|
4
|
-
/**
|
|
5
|
-
* @param {Node} dependencyGraph
|
|
6
|
-
* @return {Node}
|
|
7
|
-
*/
|
|
8
|
-
static getOptimisticGraph(dependencyGraph: Node): Node;
|
|
9
|
-
/**
|
|
10
|
-
* @param {Node} dependencyGraph
|
|
11
|
-
* @return {Node}
|
|
12
|
-
*/
|
|
13
|
-
static getPessimisticGraph(dependencyGraph: Node): Node;
|
|
14
|
-
/**
|
|
15
|
-
* @param {LH.Gatherer.Simulation.Result} simulation
|
|
16
|
-
* @param {import('../metric.js').Extras} extras
|
|
17
|
-
* @return {LH.Gatherer.Simulation.Result}
|
|
18
|
-
*/
|
|
19
|
-
static getEstimateFromSimulation(simulation: LH.Gatherer.Simulation.Result, extras: import('../metric.js').Extras): LH.Gatherer.Simulation.Result;
|
|
20
|
-
/**
|
|
21
|
-
* @param {LH.Gatherer.Simulation.Result['nodeTimings']} nodeTimings
|
|
22
|
-
* @param {number} fcpTimeInMs
|
|
23
|
-
* @return {Array<{duration: number}>}
|
|
24
|
-
*/
|
|
25
|
-
static getTimingsAfterFCP(nodeTimings: LH.Gatherer.Simulation.Result['nodeTimings'], fcpTimeInMs: number): Array<{
|
|
26
|
-
duration: number;
|
|
27
|
-
}>;
|
|
28
|
-
}
|
|
29
|
-
import { Metric } from '../metric.js';
|
|
30
|
-
//# sourceMappingURL=max-potential-fid.d.ts.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type Node = import('../base-node.js').Node;
|
|
2
|
-
/** @typedef {import('../base-node.js').Node} Node */
|
|
3
|
-
export class TotalBlockingTime extends Metric {
|
|
4
|
-
/**
|
|
5
|
-
* @param {Node} dependencyGraph
|
|
6
|
-
* @return {Node}
|
|
7
|
-
*/
|
|
8
|
-
static getOptimisticGraph(dependencyGraph: Node): Node;
|
|
9
|
-
/**
|
|
10
|
-
* @param {Node} dependencyGraph
|
|
11
|
-
* @return {Node}
|
|
12
|
-
*/
|
|
13
|
-
static getPessimisticGraph(dependencyGraph: Node): Node;
|
|
14
|
-
/**
|
|
15
|
-
* @param {LH.Gatherer.Simulation.Result} simulation
|
|
16
|
-
* @param {import('../metric.js').Extras} extras
|
|
17
|
-
* @return {LH.Gatherer.Simulation.Result}
|
|
18
|
-
*/
|
|
19
|
-
static getEstimateFromSimulation(simulation: LH.Gatherer.Simulation.Result, extras: import('../metric.js').Extras): LH.Gatherer.Simulation.Result;
|
|
20
|
-
/**
|
|
21
|
-
* @param {LH.Gatherer.Simulation.Result['nodeTimings']} nodeTimings
|
|
22
|
-
* @param {number} minDurationMs
|
|
23
|
-
*/
|
|
24
|
-
static getTopLevelEvents(nodeTimings: LH.Gatherer.Simulation.Result['nodeTimings'], minDurationMs: number): {
|
|
25
|
-
start: number;
|
|
26
|
-
end: number;
|
|
27
|
-
duration: number;
|
|
28
|
-
}[];
|
|
29
|
-
}
|
|
30
|
-
import { Metric } from '../metric.js';
|
|
31
|
-
//# sourceMappingURL=total-blocking-time.d.ts.map
|
|
File without changes
|
|
File without changes
|