mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-11-22 22:14:25 +03:00
Fix weird off-by-one error in chrome timeline import
This commit is contained in:
parent
65ec2da913
commit
9fbef41305
@ -84,7 +84,7 @@ export function importFromChrome(events: TimelineEvent[]) {
|
||||
}
|
||||
|
||||
for (let i = 0; i < samples.length; i++) {
|
||||
const timeDelta = timeDeltas[i]
|
||||
const timeDelta = timeDeltas[i+1] || 0
|
||||
const nodeId = samples[i]
|
||||
let node = nodeById.get(nodeId)
|
||||
if (!node) continue
|
||||
|
Loading…
Reference in New Issue
Block a user