Skip to content

Commit 78c0c62

Browse files
committed
fix: heap TreeNodeAccessor
1 parent 00b93d1 commit 78c0c62

File tree

1 file changed

+2
-5
lines changed
  • packages/vscode-js-profile-flame/src/client/heap

1 file changed

+2
-5
lines changed

packages/vscode-js-profile-flame/src/client/heap/stacks.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class TreeNodeAccessor implements IHeapProfileNode {
2525
public readonly src?: ISourceLocation;
2626

2727
/**
28-
* Gets children of the location.
28+
* Gets children of the treeNode.
2929
*/
3030
public get children() {
3131
const children: TreeNodeAccessor[] = [];
@@ -38,10 +38,7 @@ export class TreeNodeAccessor implements IHeapProfileNode {
3838
if (rs && typeof rs !== 'number') {
3939
children.push(new TreeNodeAccessor(this.model, dx, this.y + 1));
4040
}
41-
} while (
42-
++dx < this.model.length &&
43-
this.model[dx].rows[this.y] === this.model[this.x].rows[this.y]
44-
);
41+
} while (++dx < this.model.length && this.model[dx].rows[this.y] === this.x);
4542

4643
return children;
4744
}

0 commit comments

Comments
 (0)