Skip to content

Commit

Permalink
fix(performanceMark): use correct start time from the end of previous…
Browse files Browse the repository at this point in the history
… measure
  • Loading branch information
niieani committed Jul 15, 2023
1 parent 95a1c5b commit 0facae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/performanceMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})

Expand Down

0 comments on commit 0facae9

Please sign in to comment.