mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1118295 - Optimize emptying the prevFrames
array in FlameGraphUtils.createFlameGraphDataFromSamples, r=jsantell
This commit is contained in:
parent
0472eb9d37
commit
1914c41c37
@ -827,10 +827,7 @@ let FlameGraphUtils = {
|
|||||||
|
|
||||||
// Previous frames at stack depths greater than the current sample's
|
// Previous frames at stack depths greater than the current sample's
|
||||||
// maximum need to be nullified. It's nonsensical to reuse them.
|
// maximum need to be nullified. It's nonsensical to reuse them.
|
||||||
for (let i = frameIndex; i < prevFrames.length; i++) {
|
prevFrames.length = frameIndex;
|
||||||
prevFrames[i] = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
prevTime = time;
|
prevTime = time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user