|
37 | 37 | import pascal.taie.ir.stmt.New; |
38 | 38 | import pascal.taie.language.classes.JMethod; |
39 | 39 | import pascal.taie.language.type.Type; |
| 40 | +import pascal.taie.util.Monitor; |
40 | 41 | import pascal.taie.util.MutableInt; |
41 | | -import pascal.taie.util.Timer; |
42 | 42 | import pascal.taie.util.collection.Maps; |
43 | 43 | import pascal.taie.util.collection.Sets; |
44 | 44 |
|
@@ -110,9 +110,9 @@ public Zipper(PointerAnalysisResult ptaBase, boolean isExpress, float pv) { |
110 | 110 | this.pta = new PointerAnalysisResultExImpl(ptaBase, true); |
111 | 111 | this.isExpress = isExpress; |
112 | 112 | this.pv = pv; |
113 | | - this.oag = Timer.runAndCount(() -> new ObjectAllocationGraph(pta), |
| 113 | + this.oag = Monitor.runAndCount(() -> new ObjectAllocationGraph(pta), |
114 | 114 | "Building OAG", Level.INFO); |
115 | | - this.pce = Timer.runAndCount(() -> new PotentialContextElement(pta, oag), |
| 115 | + this.pce = Monitor.runAndCount(() -> new PotentialContextElement(pta, oag), |
116 | 116 | "Building PCE", Level.INFO); |
117 | 117 | this.ofg = ptaBase.getObjectFlowGraph(); |
118 | 118 | logger.info("{} nodes in OFG", ofg.getNodes().size()); |
@@ -148,7 +148,7 @@ public Set<JMethod> selectPrecisionCriticalMethods() { |
148 | 148 |
|
149 | 149 | // build and analyze precision-flow graphs |
150 | 150 | Set<Type> types = pta.getObjectTypes(); |
151 | | - Timer.runAndCount(() -> types.parallelStream().forEach(this::analyze), |
| 151 | + Monitor.runAndCount(() -> types.parallelStream().forEach(this::analyze), |
152 | 152 | "Building and analyzing PFG", Level.INFO); |
153 | 153 | logger.info("#types: {}", types.size()); |
154 | 154 | logger.info("#avg. nodes in PFG: {}", totalPFGNodes.get() / types.size()); |
|
0 commit comments