File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/browser-utils/src/metrics Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ interface PerformanceEventTiming extends PerformanceEntry {
37
37
interactionId ?: number ;
38
38
}
39
39
40
+ interface PerformanceScriptTiming extends PerformanceEntry {
41
+ sourceCharPosition : number ;
42
+ sourceFunctionName : string ;
43
+ sourceUrl : string ;
44
+ }
45
+
40
46
interface Metric {
41
47
/**
42
48
* The name of the metric (in acronym form).
@@ -163,6 +169,10 @@ export function addPerformanceInstrumentationHandler(
163
169
type : 'event' ,
164
170
callback : ( data : { entries : ( ( PerformanceEntry & { target ?: unknown | null } ) | PerformanceEventTiming ) [ ] } ) => void ,
165
171
) : CleanupHandlerCallback ;
172
+ export function addPerformanceInstrumentationHandler (
173
+ type : 'long-animation-frame' ,
174
+ callback : ( data : { entries : ( PerformanceEntry & { scripts ?: PerformanceScriptTiming [ ] } ) [ ] } ) => void ,
175
+ ) : CleanupHandlerCallback ;
166
176
export function addPerformanceInstrumentationHandler (
167
177
type : InstrumentHandlerTypePerformanceObserver ,
168
178
callback : ( data : { entries : PerformanceEntry [ ] } ) => void ,
You can’t perform that action at this time.
0 commit comments