Bug 1118295 - Optimize emptying the prevFrames array in FlameGraphUtils.createFlameGraphDataFromSamples, r=jsantell

This commit is contained in:
Victor Porof 2015-01-11 09:54:26 -05:00
parent 0472eb9d37
commit 1914c41c37

View File

@ -827,10 +827,7 @@ let FlameGraphUtils = {
// Previous frames at stack depths greater than the current sample's
// maximum need to be nullified. It's nonsensical to reuse them.
for (let i = frameIndex; i < prevFrames.length; i++) {
prevFrames[i] = null;
}
prevFrames.length = frameIndex;
prevTime = time;
}