1 package org.simantics.scl.runtime.profiling;
3 public class BranchPoint {
4 public static final BranchPoint[] EMPTY_ARRAY = new BranchPoint[0];
6 public final long location;
7 public final int codeSize;
8 public final BranchPoint[] children;
10 public int visitCounter;
12 public BranchPoint(long location, int codeSize, BranchPoint[] children) {
13 this.location = location;
14 this.codeSize = codeSize;
15 this.children = children;
18 public void resetVisitCountersRecursively() {
20 for(BranchPoint branchPoint : children)
21 branchPoint.resetVisitCountersRecursively();