mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-11-22 12:53:23 +03:00
Prevent an infinite loop
This commit is contained in:
parent
e4a6d2e3f3
commit
045be2831b
@ -275,6 +275,11 @@ export class FlamechartRenderer {
|
||||
// atlas line is higher resolution than its corresponding destination rectangle on
|
||||
// the screen.
|
||||
const configToPhysical = AffineTransform.betweenRects(configSpaceSrcRect, physicalSpaceDstRect)
|
||||
if (configSpaceSrcRect.isEmpty()) {
|
||||
// Prevent an infinite loop
|
||||
return
|
||||
}
|
||||
|
||||
let zoomLevel = 0
|
||||
while (true) {
|
||||
const configSpaceBounds = this.configSpaceBoundsForKey({ stackDepth: 0, zoomLevel, index: 0 })
|
||||
|
Loading…
Reference in New Issue
Block a user