Skip to content

Commit 45a9522

Browse files
committed
docs: explain why URL is used as the filter
1 parent 9a25d7a commit 45a9522

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ class Saturn {
222222
_getPerformanceMetricsForLog (log) {
223223
const metrics = {}
224224

225+
// URL is the best differentiator available, though there can be multiple entries per URL.
226+
// It's a good enough heuristic.
225227
const entry = performance
226228
.getEntriesByType('resource')
227229
.find((r) => r.name === log.url.href)

0 commit comments

Comments
 (0)