We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 311a199 commit 74d17d5Copy full SHA for 74d17d5
packages/react-native-performance/src/performance.ts
@@ -81,6 +81,9 @@ export const createPerformance = (now: () => number = defaultNow) => {
81
82
const clearMetrics = (name?: string) => removeEntries('metric', name);
83
84
+ const clearResourceTimings = (name?: string) =>
85
+ removeEntries('resource', name);
86
+
87
const convertMarkToTimestamp = (markOrTimestamp: string | number) => {
88
switch (typeof markOrTimestamp) {
89
case 'string': {
@@ -260,6 +263,7 @@ export const createPerformance = (now: () => number = defaultNow) => {
260
263
clearMeasures,
261
264
metric,
262
265
clearMetrics,
266
+ clearResourceTimings,
267
getEntries,
268
getEntriesByName,
269
getEntriesByType,
0 commit comments