From 0facae91dd03b9cc37fb0a07b89a1adf8714de8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bazyli=20Brz=C3=B3ska?= Date: Fri, 14 Jul 2023 17:39:09 -0700 Subject: [PATCH] fix(performanceMark): use correct start time from the end of previous measure --- src/performanceMark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/performanceMark.ts b/src/performanceMark.ts index 4b3fdfbe..fd25d8d8 100644 --- a/src/performanceMark.ts +++ b/src/performanceMark.ts @@ -53,7 +53,7 @@ export const performanceMeasure = ( // we don't want to crash due to reporting, so we'll polyfill instead try { const measure = performance.measure(measureName, { - start: startMark.startTime, + start: startMark.startTime + startMark.duration, end, })