@paulirish/trace_engine 0.0.67-beta.1 → 0.0.67-beta.2
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/common/ParsedURL.d.ts +8 -0
- package/core/common/Settings.d.ts +2 -0
- package/core/host/Platform.d.ts +5 -0
- package/core/host/UserMetricsEnums.d.ts +8 -3
- package/core/platform/StringUtilities.d.ts +21 -0
- package/core/root/ExperimentNames.d.ts +2 -1
- package/core/root/Runtime.d.ts +4 -2
- package/core/sdk/CSSModel.d.ts +5 -0
- package/core/sdk/CSSPropertyParser.d.ts +0 -5
- package/core/sdk/DOMModel.d.ts +8 -4
- package/core/sdk/DebuggerModel.d.ts +37 -4
- package/core/sdk/NetworkRequest.d.ts +30 -2
- package/core/sdk/ResourceTreeModel.d.ts +3 -1
- package/core/sdk/RuntimeModel.d.ts +1 -0
- package/core/sdk/SDKSettings.d.ts +1 -0
- package/core/sdk/SourceMap.d.ts +20 -6
- package/core/sdk/SourceMapFunctionRanges.d.ts +3 -6
- package/core/sdk/SourceMapScopesInfo.d.ts +98 -23
- package/core/text_utils/Markdown.d.ts +13 -0
- package/core/text_utils/text_utils.d.ts +2 -1
- package/entrypoints/formatter_actions/formatter_actions.d.ts +17 -0
- package/generated/protocol-mapping.d.ts +64 -9
- package/generated/protocol-proxy-api.d.ts +58 -7
- package/generated/protocol.d.ts +93 -30
- package/locales/af.json +129 -126
- package/locales/am.json +128 -125
- package/locales/ar.json +130 -127
- package/locales/as.json +130 -127
- package/locales/az.json +130 -127
- package/locales/be.json +128 -125
- package/locales/bg.json +130 -127
- package/locales/bn.json +130 -127
- package/locales/bs.json +130 -127
- package/locales/ca.json +130 -127
- package/locales/cs.json +128 -125
- package/locales/cy.json +130 -127
- package/locales/da.json +129 -126
- package/locales/de.json +130 -127
- package/locales/el.json +130 -127
- package/locales/en-GB.json +130 -127
- package/locales/en-US.json +130 -127
- package/locales/es-419.json +129 -126
- package/locales/es.json +130 -127
- package/locales/et.json +95 -92
- package/locales/eu.json +130 -127
- package/locales/fa.json +130 -127
- package/locales/fi.json +129 -126
- package/locales/fil.json +130 -127
- package/locales/fr-CA.json +130 -127
- package/locales/fr.json +130 -127
- package/locales/gl.json +130 -127
- package/locales/gu.json +130 -127
- package/locales/he.json +130 -127
- package/locales/hi.json +130 -127
- package/locales/hr.json +128 -125
- package/locales/hu.json +90 -87
- package/locales/hy.json +127 -124
- package/locales/id.json +130 -127
- package/locales/is.json +129 -126
- package/locales/it.json +130 -127
- package/locales/ja.json +130 -127
- package/locales/ka.json +129 -126
- package/locales/kk.json +38 -35
- package/locales/km.json +130 -127
- package/locales/kn.json +130 -127
- package/locales/ko.json +22 -19
- package/locales/ky.json +130 -127
- package/locales/lo.json +130 -127
- package/locales/lt.json +130 -127
- package/locales/lv.json +66 -63
- package/locales/mk.json +130 -127
- package/locales/ml.json +129 -126
- package/locales/mn.json +129 -126
- package/locales/mr.json +130 -127
- package/locales/ms.json +130 -127
- package/locales/my.json +130 -127
- package/locales/ne.json +128 -125
- package/locales/nl.json +129 -126
- package/locales/no.json +130 -127
- package/locales/or.json +130 -127
- package/locales/pa.json +130 -127
- package/locales/pl.json +130 -127
- package/locales/pt-PT.json +129 -126
- package/locales/pt.json +130 -127
- package/locales/ro.json +129 -126
- package/locales/ru.json +50 -47
- package/locales/si.json +130 -127
- package/locales/sk.json +130 -127
- package/locales/sl.json +130 -127
- package/locales/sq.json +129 -126
- package/locales/sr-Latn.json +130 -127
- package/locales/sr.json +130 -127
- package/locales/sv.json +130 -127
- package/locales/sw.json +130 -127
- package/locales/ta.json +129 -126
- package/locales/te.json +130 -127
- package/locales/th.json +92 -89
- package/locales/tr.json +129 -126
- package/locales/uk.json +128 -125
- package/locales/ur.json +130 -127
- package/locales/uz.json +126 -123
- package/locales/vi.json +130 -127
- package/locales/zh-HK.json +130 -127
- package/locales/zh-TW.json +130 -127
- package/locales/zh.json +130 -127
- package/locales/zu.json +129 -126
- package/models/emulation/DeviceModeModel.d.ts +1 -0
- package/models/formatter/FormatterWorkerPool.d.ts +2 -2
- package/models/formatter/ScriptFormatter.d.ts +2 -2
- package/models/trace/extras/StackTraceForEvent.d.ts +1 -1
- package/models/trace/handlers/AnimationFramesHandler.d.ts +1 -1
- package/models/trace/handlers/AsyncJSCallsHandler.d.ts +2 -2
- package/models/trace/handlers/ImagePaintingHandler.d.ts +2 -2
- package/models/trace/handlers/InitiatorsHandler.d.ts +2 -2
- package/models/trace/handlers/LayerTreeHandler.d.ts +1 -1
- package/models/trace/handlers/NetworkRequestsHandler.d.ts +1 -1
- package/models/trace/handlers/PageLoadMetricsHandler.d.ts +1 -1
- package/models/trace/handlers/ScriptsHandler.d.ts +1 -1
- package/models/trace/handlers/WarningsHandler.d.ts +1 -1
- package/models/trace/helpers/SamplesIntegrator.d.ts +3 -1
- package/models/trace/helpers/Trace.d.ts +2 -0
- package/models/trace/insights/CLSCulprits.d.ts +1 -1
- package/models/trace/insights/DuplicatedJavaScript.d.ts +1 -1
- package/models/trace/insights/ImageDelivery.d.ts +1 -0
- package/models/trace/lantern/core/NetworkAnalyzer.d.ts +1 -0
- package/models/trace/lantern/graph/CPUNode.d.ts +4 -2
- package/models/trace/lantern/simulation/TCPConnection.d.ts +4 -4
- package/models/trace/lantern/types/Lantern.d.ts +15 -0
- package/models/trace/types/Overlays.d.ts +4 -3
- package/models/trace/types/TraceEvents.d.ts +184 -124
- package/package.json +5 -2
- package/third_party/marked/marked.d.ts +2 -0
- package/third_party/marked/package/lib/marked.esm.d.ts +760 -0
- package/third_party/source-map-scopes-codec/package/src/builder/builder.d.ts +4 -1
- package/third_party/source-map-scopes-codec/package/src/builder/safe_builder.d.ts +3 -1
- package/third_party/source-map-scopes-codec/package/src/codec.d.ts +6 -5
- package/third_party/source-map-scopes-codec/package/src/decode/decode.d.ts +2 -0
- package/third_party/source-map-scopes-codec/package/src/encode/encoder.d.ts +4 -1
- package/third_party/source-map-scopes-codec/package/src/scopes.d.ts +4 -3
- package/third_party/source-map-scopes-codec/package/src/vlq.d.ts +1 -1
|
@@ -50,19 +50,13 @@ export interface Event {
|
|
|
50
50
|
dur?: Micro;
|
|
51
51
|
}
|
|
52
52
|
export declare function objectIsEvent(obj: object): obj is Event;
|
|
53
|
+
/**
|
|
54
|
+
* Base `args` payload for trace events.
|
|
55
|
+
*
|
|
56
|
+
* Do not add event-specific properties or catch-all `data` bags here; define
|
|
57
|
+
* them on individual event interfaces instead.
|
|
58
|
+
*/
|
|
53
59
|
export interface Args {
|
|
54
|
-
data?: ArgsData;
|
|
55
|
-
sampleTraceId?: number;
|
|
56
|
-
stackTrace?: CallFrame[];
|
|
57
|
-
}
|
|
58
|
-
export interface ArgsData {
|
|
59
|
-
stackTrace?: CallFrame[];
|
|
60
|
-
sampleTraceId?: number;
|
|
61
|
-
url?: string;
|
|
62
|
-
navigationId?: string;
|
|
63
|
-
/** For soft navs. */
|
|
64
|
-
performanceTimelineNavigationId?: number;
|
|
65
|
-
frame?: string;
|
|
66
60
|
}
|
|
67
61
|
export interface CallFrame {
|
|
68
62
|
codeType?: string;
|
|
@@ -96,7 +90,7 @@ export interface SyntheticCpuProfile extends Complete {
|
|
|
96
90
|
name: Name.CPU_PROFILE;
|
|
97
91
|
id: ProfileID;
|
|
98
92
|
args: Args & {
|
|
99
|
-
data:
|
|
93
|
+
data: {
|
|
100
94
|
cpuProfile: Protocol.Profiler.Profile;
|
|
101
95
|
};
|
|
102
96
|
};
|
|
@@ -105,7 +99,7 @@ export interface Profile extends Sample {
|
|
|
105
99
|
name: Name.PROFILE;
|
|
106
100
|
id: ProfileID;
|
|
107
101
|
args: Args & {
|
|
108
|
-
data:
|
|
102
|
+
data: {
|
|
109
103
|
startTime: Micro;
|
|
110
104
|
source?: ProfileSource;
|
|
111
105
|
};
|
|
@@ -115,7 +109,7 @@ export interface ProfileChunk extends Sample {
|
|
|
115
109
|
name: Name.PROFILE_CHUNK;
|
|
116
110
|
id: ProfileID;
|
|
117
111
|
args: Args & {
|
|
118
|
-
data
|
|
112
|
+
data: {
|
|
119
113
|
cpuProfile?: PartialProfile;
|
|
120
114
|
timeDeltas?: Micro[];
|
|
121
115
|
lines?: number[];
|
|
@@ -162,26 +156,29 @@ export declare function isRunTask(event: Event): event is RunTask;
|
|
|
162
156
|
export interface FireIdleCallback extends Complete {
|
|
163
157
|
name: Name.FIRE_IDLE_CALLBACK;
|
|
164
158
|
args: Args & {
|
|
165
|
-
data:
|
|
159
|
+
data: {
|
|
166
160
|
allottedMilliseconds: Milli;
|
|
167
|
-
frame: string;
|
|
168
161
|
id: number;
|
|
169
162
|
timedOut: boolean;
|
|
163
|
+
frame?: string;
|
|
164
|
+
sampleTraceId?: number;
|
|
170
165
|
};
|
|
171
166
|
};
|
|
172
167
|
}
|
|
173
168
|
export interface SchedulePostMessage extends Instant {
|
|
174
169
|
name: Name.SCHEDULE_POST_MESSAGE;
|
|
175
170
|
args: Args & {
|
|
176
|
-
data:
|
|
171
|
+
data: {
|
|
177
172
|
traceId: string;
|
|
173
|
+
stackTrace?: CallFrame[];
|
|
174
|
+
sampleTraceId?: number;
|
|
178
175
|
};
|
|
179
176
|
};
|
|
180
177
|
}
|
|
181
178
|
export interface HandlePostMessage extends Complete {
|
|
182
179
|
name: Name.HANDLE_POST_MESSAGE;
|
|
183
180
|
args: Args & {
|
|
184
|
-
data:
|
|
181
|
+
data: {
|
|
185
182
|
traceId: string;
|
|
186
183
|
};
|
|
187
184
|
};
|
|
@@ -189,8 +186,10 @@ export interface HandlePostMessage extends Complete {
|
|
|
189
186
|
export interface Dispatch extends Complete {
|
|
190
187
|
name: 'EventDispatch';
|
|
191
188
|
args: Args & {
|
|
192
|
-
data:
|
|
189
|
+
data: {
|
|
193
190
|
type: string;
|
|
191
|
+
stackTrace?: CallFrame[];
|
|
192
|
+
sampleTraceId?: number;
|
|
194
193
|
};
|
|
195
194
|
};
|
|
196
195
|
}
|
|
@@ -202,6 +201,7 @@ export interface ParseHTML extends Complete {
|
|
|
202
201
|
startLine: number;
|
|
203
202
|
url: string;
|
|
204
203
|
sampleTraceId?: number;
|
|
204
|
+
stackTrace?: CallFrame[];
|
|
205
205
|
};
|
|
206
206
|
endData?: {
|
|
207
207
|
endLine: number;
|
|
@@ -232,7 +232,7 @@ export interface EventTimingBegin extends Event {
|
|
|
232
232
|
name: Name.EVENT_TIMING;
|
|
233
233
|
id: string;
|
|
234
234
|
args: Args & {
|
|
235
|
-
data:
|
|
235
|
+
data: {
|
|
236
236
|
cancelable: boolean;
|
|
237
237
|
duration: Milli;
|
|
238
238
|
type: string;
|
|
@@ -258,7 +258,7 @@ export interface EventTimingEnd extends Event {
|
|
|
258
258
|
export interface GPUTask extends Complete {
|
|
259
259
|
name: 'GPUTask';
|
|
260
260
|
args: Args & {
|
|
261
|
-
data
|
|
261
|
+
data: {
|
|
262
262
|
renderer_pid: ProcessID;
|
|
263
263
|
used_bytes: number;
|
|
264
264
|
};
|
|
@@ -304,7 +304,7 @@ interface SyntheticArgsData {
|
|
|
304
304
|
export interface SyntheticNetworkRequest extends Complete, SyntheticBased<Phase.COMPLETE> {
|
|
305
305
|
rawSourceEvent: ResourceSendRequest;
|
|
306
306
|
args: Args & {
|
|
307
|
-
data:
|
|
307
|
+
data: {
|
|
308
308
|
syntheticData: SyntheticArgsData;
|
|
309
309
|
/** Size of the resource after decompression (if applicable). */
|
|
310
310
|
decodedBodyLength: number;
|
|
@@ -353,6 +353,7 @@ export interface SyntheticNetworkRequest extends Complete, SyntheticBased<Phase.
|
|
|
353
353
|
initiator?: Initiator;
|
|
354
354
|
requestMethod?: string;
|
|
355
355
|
timing?: ResourceReceiveResponseTimingData;
|
|
356
|
+
stackTrace?: CallFrame[];
|
|
356
357
|
/** Server response time according to Lightrider. */
|
|
357
358
|
lrServerResponseTime?: Milli;
|
|
358
359
|
};
|
|
@@ -370,7 +371,7 @@ export interface SyntheticNetworkRequest extends Complete, SyntheticBased<Phase.
|
|
|
370
371
|
export interface SyntheticWebSocketConnection extends Complete, SyntheticBased<Phase.COMPLETE> {
|
|
371
372
|
rawSourceEvent: Event;
|
|
372
373
|
args: Args & {
|
|
373
|
-
data:
|
|
374
|
+
data: {
|
|
374
375
|
identifier: number;
|
|
375
376
|
priority: Protocol.Network.ResourcePriority;
|
|
376
377
|
url: string;
|
|
@@ -398,7 +399,7 @@ export interface SyntheticAuctionWorklet extends Instant, SyntheticBased<Phase.I
|
|
|
398
399
|
target: string;
|
|
399
400
|
type: AuctionWorkletType;
|
|
400
401
|
args: Args & {
|
|
401
|
-
data:
|
|
402
|
+
data: {
|
|
402
403
|
utilityThread: ThreadName;
|
|
403
404
|
v8HelperThread: ThreadName;
|
|
404
405
|
} & ({
|
|
@@ -417,7 +418,7 @@ export interface AuctionWorkletRunningInProcess extends Event {
|
|
|
417
418
|
name: 'AuctionWorkletRunningInProcess';
|
|
418
419
|
ph: Phase.INSTANT;
|
|
419
420
|
args: Args & {
|
|
420
|
-
data:
|
|
421
|
+
data: {
|
|
421
422
|
host: string;
|
|
422
423
|
pid: ProcessID;
|
|
423
424
|
target: string;
|
|
@@ -429,7 +430,7 @@ export interface AuctionWorkletDoneWithProcess extends Event {
|
|
|
429
430
|
name: 'AuctionWorkletDoneWithProcess';
|
|
430
431
|
ph: Phase.INSTANT;
|
|
431
432
|
args: Args & {
|
|
432
|
-
data:
|
|
433
|
+
data: {
|
|
433
434
|
host: string;
|
|
434
435
|
pid: ProcessID;
|
|
435
436
|
target: string;
|
|
@@ -492,7 +493,7 @@ export interface Screenshot extends Instant {
|
|
|
492
493
|
}
|
|
493
494
|
export interface Animation extends Event {
|
|
494
495
|
args: Args & {
|
|
495
|
-
data:
|
|
496
|
+
data: {
|
|
496
497
|
nodeName?: string;
|
|
497
498
|
nodeId?: Protocol.DOM.BackendNodeId;
|
|
498
499
|
displayName?: string;
|
|
@@ -532,7 +533,7 @@ export interface NavigationStart extends Mark {
|
|
|
532
533
|
name: Name.NAVIGATION_START;
|
|
533
534
|
args: Args & {
|
|
534
535
|
frame: string;
|
|
535
|
-
data
|
|
536
|
+
data: {
|
|
536
537
|
/** Must be non-empty to be valid. An empty documentLoaderURL means the event can be ignored. */
|
|
537
538
|
documentLoaderURL: string;
|
|
538
539
|
isLoadingMainFrame: boolean;
|
|
@@ -576,7 +577,7 @@ export interface FirstContentfulPaint extends Mark {
|
|
|
576
577
|
name: Name.MARK_FCP;
|
|
577
578
|
args: Args & {
|
|
578
579
|
frame: string;
|
|
579
|
-
data
|
|
580
|
+
data: {
|
|
580
581
|
navigationId: string;
|
|
581
582
|
};
|
|
582
583
|
};
|
|
@@ -590,30 +591,26 @@ export interface FirstPaint extends Mark {
|
|
|
590
591
|
name: Name.MARK_FIRST_PAINT;
|
|
591
592
|
args: Args & {
|
|
592
593
|
frame: string;
|
|
593
|
-
data
|
|
594
|
+
data: {
|
|
594
595
|
navigationId: string;
|
|
595
596
|
};
|
|
596
597
|
};
|
|
597
598
|
}
|
|
598
599
|
export type PageLoadEvent = AnyFirstContentfulPaint | MarkDOMContent | InteractiveTime | AnyLargestContentfulPaintCandidate | LayoutShift | FirstPaint | MarkLoad | NavigationStart | SoftNavigationStart;
|
|
599
|
-
export type MarkerEventName = Name.MARK_DOM_CONTENT | Name.MARK_LOAD | Name.MARK_FIRST_PAINT | Name.MARK_FCP | Name.MARK_SOFT_FCP | Name.MARK_LCP_CANDIDATE | Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION | Name.NAVIGATION_START | Name.SOFT_NAVIGATION_START;
|
|
600
|
-
export declare const MarkerName: readonly MarkerEventName[];
|
|
601
|
-
export interface MarkerEvent extends Event {
|
|
602
|
-
name: MarkerEventName;
|
|
603
|
-
}
|
|
604
600
|
export declare function isMarkerEvent(event: Event): event is MarkerEvent;
|
|
605
601
|
export declare function eventIsPageLoadEvent(event: Event): event is PageLoadEvent;
|
|
606
602
|
export interface LargestContentfulPaintCandidate extends Mark {
|
|
607
603
|
name: Name.MARK_LCP_CANDIDATE;
|
|
608
604
|
args: Args & {
|
|
609
605
|
frame: string;
|
|
610
|
-
data
|
|
606
|
+
data: {
|
|
611
607
|
candidateIndex: number;
|
|
612
608
|
isOutermostMainFrame: boolean;
|
|
613
609
|
isMainFrame: boolean;
|
|
614
610
|
navigationId: string;
|
|
615
611
|
nodeId: Protocol.DOM.BackendNodeId;
|
|
616
|
-
loadingAttr
|
|
612
|
+
loadingAttr?: string;
|
|
613
|
+
size?: number;
|
|
617
614
|
type?: string;
|
|
618
615
|
nodeName?: string;
|
|
619
616
|
};
|
|
@@ -623,13 +620,14 @@ export interface LargestContentfulPaintCandidateForSoftNavigation extends Mark {
|
|
|
623
620
|
name: Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION;
|
|
624
621
|
args: Args & {
|
|
625
622
|
frame: string;
|
|
626
|
-
data
|
|
623
|
+
data: {
|
|
627
624
|
candidateIndex: number;
|
|
628
625
|
isOutermostMainFrame: boolean;
|
|
629
626
|
isMainFrame: boolean;
|
|
630
627
|
nodeId: Protocol.DOM.BackendNodeId;
|
|
631
|
-
loadingAttr: string;
|
|
632
628
|
performanceTimelineNavigationId: number;
|
|
629
|
+
loadingAttr?: string;
|
|
630
|
+
size?: number;
|
|
633
631
|
type?: string;
|
|
634
632
|
nodeName?: string;
|
|
635
633
|
};
|
|
@@ -640,7 +638,7 @@ export interface LargestImagePaintCandidate extends Mark {
|
|
|
640
638
|
name: 'LargestImagePaint::Candidate';
|
|
641
639
|
args: Args & {
|
|
642
640
|
frame: string;
|
|
643
|
-
data
|
|
641
|
+
data: {
|
|
644
642
|
candidateIndex: number;
|
|
645
643
|
imageUrl: string;
|
|
646
644
|
DOMNodeId: Protocol.DOM.BackendNodeId;
|
|
@@ -651,7 +649,7 @@ export interface LargestTextPaintCandidate extends Mark {
|
|
|
651
649
|
name: 'LargestTextPaint::Candidate';
|
|
652
650
|
args: Args & {
|
|
653
651
|
frame: string;
|
|
654
|
-
data
|
|
652
|
+
data: {
|
|
655
653
|
candidateIndex: number;
|
|
656
654
|
DOMNodeId: Protocol.DOM.BackendNodeId;
|
|
657
655
|
nodeName?: string;
|
|
@@ -674,7 +672,7 @@ export interface Instant extends Event {
|
|
|
674
672
|
export interface DOMStats extends Instant {
|
|
675
673
|
name: 'DOMStats';
|
|
676
674
|
args: Args & {
|
|
677
|
-
data:
|
|
675
|
+
data: {
|
|
678
676
|
frame: string;
|
|
679
677
|
totalElements: number;
|
|
680
678
|
maxChildren?: {
|
|
@@ -693,11 +691,11 @@ export interface DOMStats extends Instant {
|
|
|
693
691
|
export interface UpdateCounters extends Instant {
|
|
694
692
|
name: 'UpdateCounters';
|
|
695
693
|
args: Args & {
|
|
696
|
-
data:
|
|
697
|
-
documents: number;
|
|
698
|
-
jsEventListeners: number;
|
|
694
|
+
data: {
|
|
699
695
|
jsHeapSizeUsed: number;
|
|
700
|
-
|
|
696
|
+
documents?: number;
|
|
697
|
+
jsEventListeners?: number;
|
|
698
|
+
nodes?: number;
|
|
701
699
|
gpuMemoryLimitKB?: number;
|
|
702
700
|
};
|
|
703
701
|
};
|
|
@@ -706,7 +704,7 @@ export type RendererEvent = Instant | Complete;
|
|
|
706
704
|
export interface TracingStartedInBrowser extends Instant {
|
|
707
705
|
name: Name.TRACING_STARTED_IN_BROWSER;
|
|
708
706
|
args: Args & {
|
|
709
|
-
data
|
|
707
|
+
data: {
|
|
710
708
|
frameTreeNodeId: number;
|
|
711
709
|
persistentIds: boolean;
|
|
712
710
|
frames?: TraceFrame[];
|
|
@@ -716,7 +714,7 @@ export interface TracingStartedInBrowser extends Instant {
|
|
|
716
714
|
export interface TracingSessionIdForWorker extends Instant {
|
|
717
715
|
name: 'TracingSessionIdForWorker';
|
|
718
716
|
args: Args & {
|
|
719
|
-
data?:
|
|
717
|
+
data?: {
|
|
720
718
|
url: string;
|
|
721
719
|
workerId: WorkerId;
|
|
722
720
|
workerThreadId: ThreadID;
|
|
@@ -728,37 +726,37 @@ export declare function isTracingSessionIdForWorker(event: Event): event is Trac
|
|
|
728
726
|
export interface FrameCommittedInBrowser extends Instant {
|
|
729
727
|
name: 'FrameCommittedInBrowser';
|
|
730
728
|
args: Args & {
|
|
731
|
-
data
|
|
729
|
+
data: TraceFrame;
|
|
732
730
|
};
|
|
733
731
|
}
|
|
734
732
|
export interface MainFrameViewport extends Instant {
|
|
735
733
|
name: 'PaintTimingVisualizer::Viewport';
|
|
736
|
-
args: {
|
|
737
|
-
data:
|
|
734
|
+
args: Args & {
|
|
735
|
+
data: {
|
|
738
736
|
viewport_rect: number[];
|
|
739
|
-
|
|
740
|
-
dpr: number;
|
|
737
|
+
dpr?: number;
|
|
741
738
|
};
|
|
742
739
|
};
|
|
743
740
|
}
|
|
744
741
|
export interface CommitLoad extends Instant {
|
|
745
742
|
name: 'CommitLoad';
|
|
746
743
|
args: Args & {
|
|
747
|
-
data
|
|
744
|
+
data: {
|
|
748
745
|
frame: string;
|
|
749
746
|
isMainFrame: boolean;
|
|
750
747
|
name: string;
|
|
751
|
-
nodeId: number;
|
|
752
748
|
page: string;
|
|
753
|
-
parent: string;
|
|
754
749
|
url: string;
|
|
750
|
+
nodeId?: number;
|
|
751
|
+
parent?: string;
|
|
752
|
+
isOutermostMainFrame?: boolean;
|
|
755
753
|
};
|
|
756
754
|
};
|
|
757
755
|
}
|
|
758
756
|
export interface MarkDOMContent extends Instant {
|
|
759
757
|
name: Name.MARK_DOM_CONTENT;
|
|
760
758
|
args: Args & {
|
|
761
|
-
data
|
|
759
|
+
data: {
|
|
762
760
|
frame: string;
|
|
763
761
|
isMainFrame: boolean;
|
|
764
762
|
page: string;
|
|
@@ -769,7 +767,7 @@ export interface MarkDOMContent extends Instant {
|
|
|
769
767
|
export interface MarkLoad extends Instant {
|
|
770
768
|
name: Name.MARK_LOAD;
|
|
771
769
|
args: Args & {
|
|
772
|
-
data
|
|
770
|
+
data: {
|
|
773
771
|
frame: string;
|
|
774
772
|
isMainFrame: boolean;
|
|
775
773
|
page: string;
|
|
@@ -787,7 +785,7 @@ export interface TraceImpactedNode {
|
|
|
787
785
|
old_rect: TraceRect;
|
|
788
786
|
debug_name?: string;
|
|
789
787
|
}
|
|
790
|
-
export
|
|
788
|
+
export interface LayoutShiftData {
|
|
791
789
|
cumulative_score: number;
|
|
792
790
|
frame_max_distance: number;
|
|
793
791
|
had_recent_input: boolean;
|
|
@@ -800,7 +798,7 @@ export type LayoutShiftData = ArgsData & {
|
|
|
800
798
|
/** This is the preferred "score", used for CLS. If `is_main_frame` is true, `score` and `weighted_score_delta` will be equal. But if the shift is from an iframe, `weighted_score_delta` will be appropriately reduced to account for the viewport size of that iframe. https://wicg.github.io/layout-instability/#subframe-weighting-factor and b/275509162 */
|
|
801
799
|
weighted_score_delta: number;
|
|
802
800
|
navigationId?: string;
|
|
803
|
-
}
|
|
801
|
+
}
|
|
804
802
|
export interface LayoutShift extends Instant {
|
|
805
803
|
name: Name.LAYOUT_SHIFT;
|
|
806
804
|
normalized?: boolean;
|
|
@@ -876,7 +874,7 @@ export interface Initiator {
|
|
|
876
874
|
export interface ResourceSendRequest extends Instant {
|
|
877
875
|
name: 'ResourceSendRequest';
|
|
878
876
|
args: Args & {
|
|
879
|
-
data:
|
|
877
|
+
data: {
|
|
880
878
|
frame: string;
|
|
881
879
|
requestId: string;
|
|
882
880
|
url: string;
|
|
@@ -889,13 +887,15 @@ export interface ResourceSendRequest extends Instant {
|
|
|
889
887
|
renderBlocking?: RenderBlocking;
|
|
890
888
|
initiator?: Initiator;
|
|
891
889
|
isLinkPreload?: boolean;
|
|
890
|
+
stackTrace?: CallFrame[];
|
|
891
|
+
sampleTraceId?: number;
|
|
892
892
|
};
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
export interface ResourceChangePriority extends Instant {
|
|
896
896
|
name: 'ResourceChangePriority';
|
|
897
897
|
args: Args & {
|
|
898
|
-
data:
|
|
898
|
+
data: {
|
|
899
899
|
requestId: string;
|
|
900
900
|
priority: Protocol.Network.ResourcePriority;
|
|
901
901
|
};
|
|
@@ -905,7 +905,7 @@ export interface ResourceChangePriority extends Instant {
|
|
|
905
905
|
export interface ResourceWillSendRequest extends Instant {
|
|
906
906
|
name: Name.RESOURCE_WILL_SEND_REQUEST;
|
|
907
907
|
args: Args & {
|
|
908
|
-
data:
|
|
908
|
+
data: {
|
|
909
909
|
requestId: string;
|
|
910
910
|
};
|
|
911
911
|
};
|
|
@@ -913,19 +913,19 @@ export interface ResourceWillSendRequest extends Instant {
|
|
|
913
913
|
export interface ResourceFinish extends Instant {
|
|
914
914
|
name: 'ResourceFinish';
|
|
915
915
|
args: Args & {
|
|
916
|
-
data:
|
|
916
|
+
data: {
|
|
917
917
|
decodedBodyLength: number;
|
|
918
918
|
didFail: boolean;
|
|
919
919
|
encodedDataLength: number;
|
|
920
|
-
finishTime: Seconds;
|
|
921
920
|
requestId: string;
|
|
921
|
+
finishTime?: Seconds;
|
|
922
922
|
};
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
925
|
export interface ResourceReceivedData extends Instant {
|
|
926
926
|
name: 'ResourceReceivedData';
|
|
927
927
|
args: Args & {
|
|
928
|
-
data:
|
|
928
|
+
data: {
|
|
929
929
|
encodedDataLength: number;
|
|
930
930
|
frame: string;
|
|
931
931
|
requestId: string;
|
|
@@ -957,7 +957,7 @@ interface ResourceReceiveResponseTimingData {
|
|
|
957
957
|
export interface ResourceReceiveResponse extends Instant {
|
|
958
958
|
name: 'ResourceReceiveResponse';
|
|
959
959
|
args: Args & {
|
|
960
|
-
data:
|
|
960
|
+
data: {
|
|
961
961
|
/**
|
|
962
962
|
* This is the protocol used to resolve the request.
|
|
963
963
|
*
|
|
@@ -965,17 +965,17 @@ export interface ResourceReceiveResponse extends Instant {
|
|
|
965
965
|
*
|
|
966
966
|
* Example values (not exhaustive): http/0.9, http/1.0, http/1.1, http, h2, h3-Q050, data, blob
|
|
967
967
|
*/
|
|
968
|
-
protocol: string;
|
|
969
968
|
encodedDataLength: number;
|
|
970
|
-
frame: string;
|
|
971
969
|
fromCache: boolean;
|
|
972
970
|
fromServiceWorker: boolean;
|
|
973
971
|
mimeType: string;
|
|
974
972
|
requestId: string;
|
|
975
|
-
responseTime: Milli;
|
|
976
973
|
statusCode: number;
|
|
977
|
-
|
|
978
|
-
|
|
974
|
+
protocol?: string;
|
|
975
|
+
frame?: string;
|
|
976
|
+
responseTime?: Milli;
|
|
977
|
+
connectionId?: number;
|
|
978
|
+
connectionReused?: boolean;
|
|
979
979
|
timing?: ResourceReceiveResponseTimingData;
|
|
980
980
|
headers?: Array<{
|
|
981
981
|
name: string;
|
|
@@ -987,7 +987,7 @@ export interface ResourceReceiveResponse extends Instant {
|
|
|
987
987
|
export interface ResourceMarkAsCached extends Instant {
|
|
988
988
|
name: 'ResourceMarkAsCached';
|
|
989
989
|
args: Args & {
|
|
990
|
-
data:
|
|
990
|
+
data: {
|
|
991
991
|
requestId: string;
|
|
992
992
|
};
|
|
993
993
|
};
|
|
@@ -1005,18 +1005,19 @@ export declare enum LayoutInvalidationReason {
|
|
|
1005
1005
|
export interface LayoutInvalidationTracking extends Instant {
|
|
1006
1006
|
name: Name.LAYOUT_INVALIDATION_TRACKING;
|
|
1007
1007
|
args: Args & {
|
|
1008
|
-
data:
|
|
1008
|
+
data: {
|
|
1009
1009
|
frame: string;
|
|
1010
1010
|
nodeId: Protocol.DOM.BackendNodeId;
|
|
1011
1011
|
reason: LayoutInvalidationReason;
|
|
1012
1012
|
nodeName?: string;
|
|
1013
|
+
stackTrace?: CallFrame[];
|
|
1013
1014
|
};
|
|
1014
1015
|
};
|
|
1015
1016
|
}
|
|
1016
1017
|
export interface ScheduleStyleInvalidationTracking extends Instant {
|
|
1017
1018
|
name: Name.SCHEDULE_STYLE_INVALIDATION_TRACKING;
|
|
1018
1019
|
args: Args & {
|
|
1019
|
-
data:
|
|
1020
|
+
data: {
|
|
1020
1021
|
frame: string;
|
|
1021
1022
|
nodeId: Protocol.DOM.BackendNodeId;
|
|
1022
1023
|
invalidationSet?: string;
|
|
@@ -1038,13 +1039,14 @@ export declare enum StyleRecalcInvalidationReason {
|
|
|
1038
1039
|
export interface StyleRecalcInvalidationTracking extends Instant {
|
|
1039
1040
|
name: Name.STYLE_RECALC_INVALIDATION_TRACKING;
|
|
1040
1041
|
args: Args & {
|
|
1041
|
-
data:
|
|
1042
|
+
data: {
|
|
1042
1043
|
frame: string;
|
|
1043
1044
|
nodeId: Protocol.DOM.BackendNodeId;
|
|
1044
1045
|
reason: StyleRecalcInvalidationReason;
|
|
1045
1046
|
subtree: boolean;
|
|
1046
1047
|
nodeName?: string;
|
|
1047
1048
|
extraData?: string;
|
|
1049
|
+
stackTrace?: CallFrame[];
|
|
1048
1050
|
};
|
|
1049
1051
|
};
|
|
1050
1052
|
}
|
|
@@ -1052,7 +1054,7 @@ export declare function isStyleRecalcInvalidationTracking(event: Event): event i
|
|
|
1052
1054
|
export interface StyleInvalidatorInvalidationTracking extends Instant {
|
|
1053
1055
|
name: Name.STYLE_INVALIDATOR_INVALIDATION_TRACKING;
|
|
1054
1056
|
args: Args & {
|
|
1055
|
-
data:
|
|
1057
|
+
data: {
|
|
1056
1058
|
frame: string;
|
|
1057
1059
|
nodeId: Protocol.DOM.BackendNodeId;
|
|
1058
1060
|
reason: string;
|
|
@@ -1060,9 +1062,9 @@ export interface StyleInvalidatorInvalidationTracking extends Instant {
|
|
|
1060
1062
|
id: string;
|
|
1061
1063
|
classes?: string[];
|
|
1062
1064
|
}>;
|
|
1063
|
-
subtree: boolean;
|
|
1064
1065
|
nodeName?: string;
|
|
1065
1066
|
extraData?: string;
|
|
1067
|
+
stackTrace?: CallFrame[];
|
|
1066
1068
|
selectors?: Array<{
|
|
1067
1069
|
selector: string;
|
|
1068
1070
|
style_sheet_id: string;
|
|
@@ -1120,6 +1122,8 @@ export interface ScheduleStyleRecalculation extends Instant {
|
|
|
1120
1122
|
reason?: StyleRecalcInvalidationReason;
|
|
1121
1123
|
subtree?: boolean;
|
|
1122
1124
|
nodeId?: Protocol.DOM.BackendNodeId;
|
|
1125
|
+
stackTrace?: CallFrame[];
|
|
1126
|
+
sampleTraceId?: number;
|
|
1123
1127
|
};
|
|
1124
1128
|
};
|
|
1125
1129
|
}
|
|
@@ -1144,6 +1148,11 @@ export interface LayoutImageUnsized extends Event {
|
|
|
1144
1148
|
export declare function isLayoutImageUnsized(event: Event): event is LayoutImageUnsized;
|
|
1145
1149
|
export interface PrePaint extends Complete {
|
|
1146
1150
|
name: 'PrePaint';
|
|
1151
|
+
args?: Args & {
|
|
1152
|
+
data?: {
|
|
1153
|
+
frame?: string;
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1147
1156
|
}
|
|
1148
1157
|
export interface PairableAsync extends Event {
|
|
1149
1158
|
ph: Phase.ASYNC_NESTABLE_START | Phase.ASYNC_NESTABLE_END | Phase.ASYNC_NESTABLE_INSTANT;
|
|
@@ -1228,6 +1237,7 @@ export interface PerformanceMeasureBegin extends PairableUserTiming {
|
|
|
1228
1237
|
detail?: string;
|
|
1229
1238
|
callTime?: Micro;
|
|
1230
1239
|
traceId?: number;
|
|
1240
|
+
stackTrace?: CallFrame[];
|
|
1231
1241
|
};
|
|
1232
1242
|
ph: Phase.ASYNC_NESTABLE_START;
|
|
1233
1243
|
}
|
|
@@ -1235,10 +1245,13 @@ export type PerformanceMeasureEnd = PairableUserTiming & PairableAsyncEnd;
|
|
|
1235
1245
|
export type PerformanceMeasure = PerformanceMeasureBegin | PerformanceMeasureEnd;
|
|
1236
1246
|
export interface PerformanceMark extends UserTiming {
|
|
1237
1247
|
args: Args & {
|
|
1238
|
-
data
|
|
1248
|
+
data: {
|
|
1239
1249
|
detail?: string;
|
|
1240
1250
|
callTime?: Micro;
|
|
1251
|
+
sampleTraceId?: number;
|
|
1252
|
+
stackTrace?: CallFrame[];
|
|
1241
1253
|
};
|
|
1254
|
+
stackTrace?: CallFrame[];
|
|
1242
1255
|
};
|
|
1243
1256
|
ph: Phase.INSTANT | Phase.MARK | Phase.ASYNC_NESTABLE_INSTANT;
|
|
1244
1257
|
}
|
|
@@ -1254,7 +1267,7 @@ export interface ConsoleTimeStamp extends Event {
|
|
|
1254
1267
|
name: Name.TIME_STAMP;
|
|
1255
1268
|
ph: Phase.INSTANT;
|
|
1256
1269
|
args: Args & {
|
|
1257
|
-
data
|
|
1270
|
+
data: {
|
|
1258
1271
|
message: string;
|
|
1259
1272
|
name?: string | number;
|
|
1260
1273
|
start?: string | number;
|
|
@@ -1263,6 +1276,7 @@ export interface ConsoleTimeStamp extends Event {
|
|
|
1263
1276
|
trackGroup?: string | number;
|
|
1264
1277
|
color?: string | number;
|
|
1265
1278
|
devtools?: string;
|
|
1279
|
+
frame?: string;
|
|
1266
1280
|
sampleTraceId?: number;
|
|
1267
1281
|
};
|
|
1268
1282
|
};
|
|
@@ -1443,6 +1457,12 @@ export type SyntheticUserTimingPair = SyntheticEventPair<PerformanceMeasure>;
|
|
|
1443
1457
|
export type SyntheticConsoleTimingPair = SyntheticEventPair<ConsoleTime>;
|
|
1444
1458
|
export type SyntheticAnimationPair = SyntheticEventPair<Animation>;
|
|
1445
1459
|
export interface SyntheticInteractionPair extends SyntheticEventPair<EventTimingBeginOrEnd> {
|
|
1460
|
+
args: SyntheticEventPair<EventTimingBeginOrEnd>['args'] & {
|
|
1461
|
+
data: {
|
|
1462
|
+
frame: string;
|
|
1463
|
+
navigationId?: string;
|
|
1464
|
+
};
|
|
1465
|
+
};
|
|
1446
1466
|
interactionId: number;
|
|
1447
1467
|
type: string;
|
|
1448
1468
|
ts: Micro;
|
|
@@ -1477,7 +1497,7 @@ export interface SyntheticProfileCall extends Event {
|
|
|
1477
1497
|
export interface SyntheticJSSample extends Event {
|
|
1478
1498
|
name: Name.JS_SAMPLE;
|
|
1479
1499
|
args: Args & {
|
|
1480
|
-
data:
|
|
1500
|
+
data: {
|
|
1481
1501
|
stackTrace: Protocol.Runtime.CallFrame[];
|
|
1482
1502
|
traceId?: number;
|
|
1483
1503
|
};
|
|
@@ -1522,7 +1542,7 @@ export interface BeginMainThreadFrame extends Instant {
|
|
|
1522
1542
|
name: Name.BEGIN_MAIN_THREAD_FRAME;
|
|
1523
1543
|
args: Args & {
|
|
1524
1544
|
layerTreeId: number;
|
|
1525
|
-
data:
|
|
1545
|
+
data: {
|
|
1526
1546
|
frameId?: number;
|
|
1527
1547
|
};
|
|
1528
1548
|
};
|
|
@@ -1532,7 +1552,7 @@ export interface NeedsBeginFrameChanged extends Instant {
|
|
|
1532
1552
|
name: Name.NEEDS_BEGIN_FRAME_CHANGED;
|
|
1533
1553
|
args: Args & {
|
|
1534
1554
|
layerTreeId: number;
|
|
1535
|
-
data:
|
|
1555
|
+
data: {
|
|
1536
1556
|
needsBeginFrame: number;
|
|
1537
1557
|
};
|
|
1538
1558
|
};
|
|
@@ -1622,13 +1642,13 @@ export declare enum SelectorTimingsKey {
|
|
|
1622
1642
|
StyleSheetId = "style_sheet_id",
|
|
1623
1643
|
InvalidationCount = "invalidation_count"
|
|
1624
1644
|
}
|
|
1625
|
-
export interface
|
|
1645
|
+
export interface SelectorStatsData {
|
|
1626
1646
|
selector_timings: SelectorTiming[];
|
|
1627
1647
|
}
|
|
1628
1648
|
export interface SelectorStats extends Complete {
|
|
1629
1649
|
name: Name.SELECTOR_STATS;
|
|
1630
1650
|
args: Args & {
|
|
1631
|
-
selector_stats?:
|
|
1651
|
+
selector_stats?: SelectorStatsData;
|
|
1632
1652
|
};
|
|
1633
1653
|
}
|
|
1634
1654
|
export declare function isSelectorStats(event: Event): event is SelectorStats;
|
|
@@ -1672,6 +1692,8 @@ export interface InvalidateLayout extends Instant {
|
|
|
1672
1692
|
data: {
|
|
1673
1693
|
frame: string;
|
|
1674
1694
|
nodeId: Protocol.DOM.BackendNodeId;
|
|
1695
|
+
stackTrace?: CallFrame[];
|
|
1696
|
+
sampleTraceId?: number;
|
|
1675
1697
|
};
|
|
1676
1698
|
};
|
|
1677
1699
|
}
|
|
@@ -1680,11 +1702,19 @@ export interface DebuggerAsyncTaskScheduled extends Event {
|
|
|
1680
1702
|
name: Name.DEBUGGER_ASYNC_TASK_SCHEDULED;
|
|
1681
1703
|
args: Args & {
|
|
1682
1704
|
taskName: string;
|
|
1705
|
+
data?: {
|
|
1706
|
+
sampleTraceId?: number;
|
|
1707
|
+
};
|
|
1683
1708
|
};
|
|
1684
1709
|
}
|
|
1685
1710
|
export declare function isDebuggerAsyncTaskScheduled(event: Event): event is DebuggerAsyncTaskScheduled;
|
|
1686
1711
|
export interface DebuggerAsyncTaskRun extends Event {
|
|
1687
1712
|
name: Name.DEBUGGER_ASYNC_TASK_RUN;
|
|
1713
|
+
args?: Args & {
|
|
1714
|
+
data?: {
|
|
1715
|
+
sampleTraceId?: number;
|
|
1716
|
+
};
|
|
1717
|
+
};
|
|
1688
1718
|
}
|
|
1689
1719
|
export declare function isDebuggerAsyncTaskRun(event: Event): event is DebuggerAsyncTaskRun;
|
|
1690
1720
|
export type ProfileID = Platform.Brand.Brand<string, 'profileIdTag'>;
|
|
@@ -1722,8 +1752,9 @@ export declare function isLayoutInvalidationTracking(event: Event): event is Lay
|
|
|
1722
1752
|
export declare function isFirstContentfulPaint(event: Event): event is FirstContentfulPaint;
|
|
1723
1753
|
export declare function isSoftFirstContentfulPaint(event: Event): event is SyntheticSoftFirstContentfulPaint;
|
|
1724
1754
|
export declare function isAnyFirstContentfulPaint(event: Event): event is AnyFirstContentfulPaint;
|
|
1755
|
+
export declare function isLargestContentfulPaintCandidate(event: Event): event is LargestContentfulPaintCandidate;
|
|
1725
1756
|
export declare function isAnyLargestContentfulPaintCandidate(event: Event): event is AnyLargestContentfulPaintCandidate;
|
|
1726
|
-
export declare function isSoftLargestContentfulPaintCandidate(event: Event): event is
|
|
1757
|
+
export declare function isSoftLargestContentfulPaintCandidate(event: Event): event is LargestContentfulPaintCandidateForSoftNavigation;
|
|
1727
1758
|
export declare function isLargestImagePaintCandidate(event: Event): event is LargestImagePaintCandidate;
|
|
1728
1759
|
export declare function isLargestTextPaintCandidate(event: Event): event is LargestTextPaintCandidate;
|
|
1729
1760
|
export declare function isMarkLoad(event: Event): event is MarkLoad;
|
|
@@ -1785,13 +1816,15 @@ export declare function isProfileCall(event: Event): event is SyntheticProfileCa
|
|
|
1785
1816
|
export interface Paint extends Event {
|
|
1786
1817
|
name: Name.PAINT;
|
|
1787
1818
|
args: Args & {
|
|
1788
|
-
data:
|
|
1789
|
-
frame: string;
|
|
1819
|
+
data: {
|
|
1790
1820
|
layerId: number;
|
|
1821
|
+
frame: string;
|
|
1791
1822
|
nodeId?: Protocol.DOM.BackendNodeId;
|
|
1792
1823
|
nodeName?: string;
|
|
1793
1824
|
/** This rect is unreliable and often wrong. We'll remove it. crbug.com/41402938#comment10 */
|
|
1794
1825
|
clip?: number[];
|
|
1826
|
+
sampleTraceId?: number;
|
|
1827
|
+
stackTrace?: CallFrame[];
|
|
1795
1828
|
};
|
|
1796
1829
|
};
|
|
1797
1830
|
}
|
|
@@ -1799,14 +1832,14 @@ export declare function isPaint(event: Event): event is Paint;
|
|
|
1799
1832
|
export interface PaintImage extends Complete {
|
|
1800
1833
|
name: Name.PAINT_IMAGE;
|
|
1801
1834
|
args: Args & {
|
|
1802
|
-
data:
|
|
1835
|
+
data: {
|
|
1803
1836
|
height: number;
|
|
1804
1837
|
width: number;
|
|
1805
1838
|
x: number;
|
|
1806
1839
|
y: number;
|
|
1807
|
-
isCSS: boolean;
|
|
1808
1840
|
srcHeight: number;
|
|
1809
1841
|
srcWidth: number;
|
|
1842
|
+
isCSS?: boolean;
|
|
1810
1843
|
isPicture?: boolean;
|
|
1811
1844
|
loadingAttribute?: string;
|
|
1812
1845
|
srcsetAttribute?: string;
|
|
@@ -1821,7 +1854,7 @@ export declare function isPaintImage(event: Event): event is PaintImage;
|
|
|
1821
1854
|
export interface ScrollLayer extends Complete {
|
|
1822
1855
|
name: Name.SCROLL_LAYER;
|
|
1823
1856
|
args: Args & {
|
|
1824
|
-
data:
|
|
1857
|
+
data: {
|
|
1825
1858
|
frame: string;
|
|
1826
1859
|
nodeId?: Protocol.DOM.BackendNodeId;
|
|
1827
1860
|
};
|
|
@@ -1831,7 +1864,7 @@ export declare function isScrollLayer(event: Event): event is ScrollLayer;
|
|
|
1831
1864
|
export interface SetLayerTreeId extends Instant {
|
|
1832
1865
|
name: Name.SET_LAYER_TREE_ID;
|
|
1833
1866
|
args: Args & {
|
|
1834
|
-
data:
|
|
1867
|
+
data: {
|
|
1835
1868
|
frame: string;
|
|
1836
1869
|
layerTreeId: number;
|
|
1837
1870
|
};
|
|
@@ -1929,8 +1962,9 @@ export interface FireAnimationFrame extends Complete {
|
|
|
1929
1962
|
name: Name.FIRE_ANIMATION_FRAME;
|
|
1930
1963
|
args: Args & {
|
|
1931
1964
|
data: {
|
|
1932
|
-
frame: string;
|
|
1933
1965
|
id: number;
|
|
1966
|
+
frame?: string;
|
|
1967
|
+
sampleTraceId?: number;
|
|
1934
1968
|
};
|
|
1935
1969
|
};
|
|
1936
1970
|
}
|
|
@@ -1939,9 +1973,10 @@ export interface RequestAnimationFrame extends Instant {
|
|
|
1939
1973
|
name: Name.REQUEST_ANIMATION_FRAME;
|
|
1940
1974
|
args: Args & {
|
|
1941
1975
|
data: {
|
|
1942
|
-
frame: string;
|
|
1943
1976
|
id: number;
|
|
1944
|
-
|
|
1977
|
+
frame?: string;
|
|
1978
|
+
stackTrace?: CallFrame[];
|
|
1979
|
+
sampleTraceId?: number;
|
|
1945
1980
|
};
|
|
1946
1981
|
};
|
|
1947
1982
|
}
|
|
@@ -1949,11 +1984,12 @@ export interface TimerInstall extends Instant {
|
|
|
1949
1984
|
name: Name.TIMER_INSTALL;
|
|
1950
1985
|
args: Args & {
|
|
1951
1986
|
data: {
|
|
1952
|
-
frame: string;
|
|
1953
1987
|
singleShot: boolean;
|
|
1954
1988
|
timeout: number;
|
|
1955
1989
|
timerId: number;
|
|
1956
|
-
|
|
1990
|
+
frame?: string;
|
|
1991
|
+
stackTrace?: CallFrame[];
|
|
1992
|
+
sampleTraceId?: number;
|
|
1957
1993
|
};
|
|
1958
1994
|
};
|
|
1959
1995
|
}
|
|
@@ -1962,8 +1998,8 @@ export interface TimerFire extends Complete {
|
|
|
1962
1998
|
name: Name.TIMER_FIRE;
|
|
1963
1999
|
args: Args & {
|
|
1964
2000
|
data: {
|
|
1965
|
-
frame: string;
|
|
1966
2001
|
timerId: number;
|
|
2002
|
+
frame?: string;
|
|
1967
2003
|
};
|
|
1968
2004
|
};
|
|
1969
2005
|
}
|
|
@@ -1975,7 +2011,8 @@ export interface RequestIdleCallback extends Instant {
|
|
|
1975
2011
|
frame: string;
|
|
1976
2012
|
id: number;
|
|
1977
2013
|
timeout: Milli;
|
|
1978
|
-
|
|
2014
|
+
sampleTraceId?: number;
|
|
2015
|
+
stackTrace?: CallFrame[];
|
|
1979
2016
|
};
|
|
1980
2017
|
};
|
|
1981
2018
|
}
|
|
@@ -1988,32 +2025,35 @@ export interface WebSocketCreate extends Instant {
|
|
|
1988
2025
|
url: string;
|
|
1989
2026
|
frame?: string;
|
|
1990
2027
|
workerId?: string;
|
|
1991
|
-
|
|
1992
|
-
stackTrace?: CallFrame;
|
|
2028
|
+
webSocketProtocol?: string;
|
|
2029
|
+
stackTrace?: CallFrame[];
|
|
2030
|
+
sampleTraceId?: number;
|
|
1993
2031
|
};
|
|
1994
2032
|
};
|
|
1995
2033
|
}
|
|
1996
2034
|
export declare function isWebSocketCreate(event: Event): event is WebSocketCreate;
|
|
1997
2035
|
export interface WebSocketInfo extends Instant {
|
|
1998
|
-
name: Name.WEB_SOCKET_DESTROY | Name.WEB_SOCKET_RECEIVE_HANDSHAKE | Name.WEB_SOCKET_RECEIVE_HANDSHAKE_REQUEST;
|
|
2036
|
+
name: Name.WEB_SOCKET_DESTROY | Name.WEB_SOCKET_SEND_HANDSHAKE_REQUEST | Name.WEB_SOCKET_RECEIVE_HANDSHAKE | Name.WEB_SOCKET_RECEIVE_HANDSHAKE_REQUEST;
|
|
1999
2037
|
args: Args & {
|
|
2000
|
-
data:
|
|
2038
|
+
data: {
|
|
2001
2039
|
identifier: number;
|
|
2002
|
-
url: string;
|
|
2003
2040
|
frame?: string;
|
|
2004
2041
|
workerId?: string;
|
|
2042
|
+
sampleTraceId?: number;
|
|
2043
|
+
stackTrace?: CallFrame[];
|
|
2005
2044
|
};
|
|
2006
2045
|
};
|
|
2007
2046
|
}
|
|
2008
2047
|
export interface WebSocketTransfer extends Instant {
|
|
2009
2048
|
name: Name.WEB_SOCKET_SEND | Name.WEB_SOCKET_RECEIVE;
|
|
2010
2049
|
args: Args & {
|
|
2011
|
-
data:
|
|
2050
|
+
data: {
|
|
2012
2051
|
identifier: number;
|
|
2013
|
-
url: string;
|
|
2014
2052
|
dataLength: number;
|
|
2015
2053
|
frame?: string;
|
|
2016
2054
|
workerId?: string;
|
|
2055
|
+
sampleTraceId?: number;
|
|
2056
|
+
stackTrace?: CallFrame[];
|
|
2017
2057
|
};
|
|
2018
2058
|
};
|
|
2019
2059
|
}
|
|
@@ -2022,24 +2062,26 @@ export declare function isWebSocketTransfer(event: Event): event is WebSocketTra
|
|
|
2022
2062
|
export interface WebSocketSend extends Instant {
|
|
2023
2063
|
name: Name.WEB_SOCKET_SEND;
|
|
2024
2064
|
args: Args & {
|
|
2025
|
-
data:
|
|
2065
|
+
data: {
|
|
2026
2066
|
identifier: number;
|
|
2027
|
-
url: string;
|
|
2028
2067
|
dataLength: number;
|
|
2029
2068
|
frame?: string;
|
|
2030
2069
|
workerId?: string;
|
|
2070
|
+
sampleTraceId?: number;
|
|
2071
|
+
stackTrace?: CallFrame[];
|
|
2031
2072
|
};
|
|
2032
2073
|
};
|
|
2033
2074
|
}
|
|
2034
2075
|
export interface WebSocketReceive extends Instant {
|
|
2035
2076
|
name: Name.WEB_SOCKET_RECEIVE;
|
|
2036
2077
|
args: Args & {
|
|
2037
|
-
data:
|
|
2078
|
+
data: {
|
|
2038
2079
|
identifier: number;
|
|
2039
|
-
url: string;
|
|
2040
2080
|
dataLength: number;
|
|
2041
2081
|
frame?: string;
|
|
2042
2082
|
workerId?: string;
|
|
2083
|
+
sampleTraceId?: number;
|
|
2084
|
+
stackTrace?: CallFrame[];
|
|
2043
2085
|
};
|
|
2044
2086
|
};
|
|
2045
2087
|
}
|
|
@@ -2047,8 +2089,11 @@ export interface WebSocketSendHandshakeRequest extends Instant {
|
|
|
2047
2089
|
name: Name.WEB_SOCKET_SEND_HANDSHAKE_REQUEST;
|
|
2048
2090
|
args: Args & {
|
|
2049
2091
|
data: {
|
|
2050
|
-
frame: string;
|
|
2051
2092
|
identifier: number;
|
|
2093
|
+
frame?: string;
|
|
2094
|
+
workerId?: string;
|
|
2095
|
+
sampleTraceId?: number;
|
|
2096
|
+
stackTrace?: CallFrame[];
|
|
2052
2097
|
};
|
|
2053
2098
|
};
|
|
2054
2099
|
}
|
|
@@ -2057,8 +2102,11 @@ export interface WebSocketReceiveHandshakeResponse extends Instant {
|
|
|
2057
2102
|
name: Name.WEB_SOCKET_RECEIVE_HANDSHAKE_REQUEST;
|
|
2058
2103
|
args: Args & {
|
|
2059
2104
|
data: {
|
|
2060
|
-
frame: string;
|
|
2061
2105
|
identifier: number;
|
|
2106
|
+
frame?: string;
|
|
2107
|
+
workerId?: string;
|
|
2108
|
+
sampleTraceId?: number;
|
|
2109
|
+
stackTrace?: CallFrame[];
|
|
2062
2110
|
};
|
|
2063
2111
|
};
|
|
2064
2112
|
}
|
|
@@ -2067,8 +2115,11 @@ export interface WebSocketDestroy extends Instant {
|
|
|
2067
2115
|
name: Name.WEB_SOCKET_DESTROY;
|
|
2068
2116
|
args: Args & {
|
|
2069
2117
|
data: {
|
|
2070
|
-
frame: string;
|
|
2071
2118
|
identifier: number;
|
|
2119
|
+
frame?: string;
|
|
2120
|
+
workerId?: string;
|
|
2121
|
+
sampleTraceId?: number;
|
|
2122
|
+
stackTrace?: CallFrame[];
|
|
2072
2123
|
};
|
|
2073
2124
|
};
|
|
2074
2125
|
}
|
|
@@ -2100,7 +2151,9 @@ export interface FunctionCall extends Complete {
|
|
|
2100
2151
|
args: Args & {
|
|
2101
2152
|
data?: Partial<CallFrame> & {
|
|
2102
2153
|
frame?: string;
|
|
2103
|
-
isolate?: string;
|
|
2154
|
+
isolate?: string | number;
|
|
2155
|
+
scriptId?: string;
|
|
2156
|
+
sampleTraceId?: number;
|
|
2104
2157
|
};
|
|
2105
2158
|
};
|
|
2106
2159
|
}
|
|
@@ -2111,9 +2164,10 @@ export interface SchedulePostTaskCallback extends Instant {
|
|
|
2111
2164
|
data: {
|
|
2112
2165
|
taskId: number;
|
|
2113
2166
|
priority: 'user-blocking' | 'user-visible' | 'background';
|
|
2114
|
-
delay
|
|
2167
|
+
delay?: Milli;
|
|
2115
2168
|
frame?: string;
|
|
2116
|
-
|
|
2169
|
+
sampleTraceId?: number;
|
|
2170
|
+
stackTrace?: CallFrame[];
|
|
2117
2171
|
};
|
|
2118
2172
|
};
|
|
2119
2173
|
}
|
|
@@ -2124,7 +2178,7 @@ export interface RunPostTaskCallback extends Complete {
|
|
|
2124
2178
|
data: {
|
|
2125
2179
|
taskId: number;
|
|
2126
2180
|
priority: 'user-blocking' | 'user-visible' | 'background';
|
|
2127
|
-
delay
|
|
2181
|
+
delay?: Milli;
|
|
2128
2182
|
frame?: string;
|
|
2129
2183
|
};
|
|
2130
2184
|
};
|
|
@@ -2136,11 +2190,12 @@ export interface AbortPostTaskCallback extends Complete {
|
|
|
2136
2190
|
data: {
|
|
2137
2191
|
taskId: number;
|
|
2138
2192
|
frame?: string;
|
|
2139
|
-
|
|
2193
|
+
sampleTraceId?: number;
|
|
2194
|
+
stackTrace?: CallFrame[];
|
|
2140
2195
|
};
|
|
2141
2196
|
};
|
|
2142
2197
|
}
|
|
2143
|
-
export declare function isAbortPostTaskCallback(event: Event): event is
|
|
2198
|
+
export declare function isAbortPostTaskCallback(event: Event): event is AbortPostTaskCallback;
|
|
2144
2199
|
/**
|
|
2145
2200
|
* Generally, before JS is executed, a trace event is dispatched that
|
|
2146
2201
|
* parents the JS calls. These we call "invocation" events. This
|
|
@@ -2150,7 +2205,7 @@ export declare function isAbortPostTaskCallback(event: Event): event is RunPostT
|
|
|
2150
2205
|
export declare function isJSInvocationEvent(event: Event): boolean;
|
|
2151
2206
|
export interface ConsoleRunTask extends Event {
|
|
2152
2207
|
args: Args & {
|
|
2153
|
-
data
|
|
2208
|
+
data?: {
|
|
2154
2209
|
sampleTraceId?: number;
|
|
2155
2210
|
};
|
|
2156
2211
|
};
|
|
@@ -2166,7 +2221,7 @@ export interface ParseAuthorStyleSheet extends Complete {
|
|
|
2166
2221
|
name: Name.PARSE_AUTHOR_STYLE_SHEET;
|
|
2167
2222
|
args?: Args & {
|
|
2168
2223
|
data: {
|
|
2169
|
-
|
|
2224
|
+
styleSheetUrl: string;
|
|
2170
2225
|
};
|
|
2171
2226
|
};
|
|
2172
2227
|
}
|
|
@@ -2356,6 +2411,11 @@ export declare enum Name {
|
|
|
2356
2411
|
LINK_PRECONNECT = "LinkPreconnect",
|
|
2357
2412
|
PRELOAD_RENDER_BLOCKING_STATUS_CHANGE = "PreloadRenderBlockingStatusChange"
|
|
2358
2413
|
}
|
|
2414
|
+
export type MarkerEventName = Name.MARK_DOM_CONTENT | Name.MARK_LOAD | Name.MARK_FIRST_PAINT | Name.MARK_FCP | Name.MARK_SOFT_FCP | Name.MARK_LCP_CANDIDATE | Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION | Name.NAVIGATION_START | Name.SOFT_NAVIGATION_START;
|
|
2415
|
+
export declare const MarkerName: readonly MarkerEventName[];
|
|
2416
|
+
export interface MarkerEvent extends Event {
|
|
2417
|
+
name: MarkerEventName;
|
|
2418
|
+
}
|
|
2359
2419
|
/**
|
|
2360
2420
|
* NOT AN EXHAUSTIVE LIST: just some categories we use and refer
|
|
2361
2421
|
* to in multiple places.
|
|
@@ -2447,7 +2507,7 @@ export interface RundownScriptSourceLarge extends Event {
|
|
|
2447
2507
|
name: 'LargeScriptCatchup';
|
|
2448
2508
|
args: Args & {
|
|
2449
2509
|
data: {
|
|
2450
|
-
isolate: number;
|
|
2510
|
+
isolate: string | number;
|
|
2451
2511
|
scriptId: number;
|
|
2452
2512
|
splitIndex: number;
|
|
2453
2513
|
splitCount: number;
|
|
@@ -2461,7 +2521,7 @@ export interface RundownScriptStub extends Event {
|
|
|
2461
2521
|
name: 'StubScriptCatchup';
|
|
2462
2522
|
args: Args & {
|
|
2463
2523
|
data: {
|
|
2464
|
-
isolate: number;
|
|
2524
|
+
isolate: string | number;
|
|
2465
2525
|
scriptId: number;
|
|
2466
2526
|
};
|
|
2467
2527
|
};
|