1 package org.simantics.scl.compiler.internal.codegen.utils;
3 public class MethodSizeCounter {
4 public String maxMethodName;
5 public int methodSizeLower;
6 public int methodSizeUpper;
8 public void update(String methodName, int lower, int upper) {
9 if(upper > methodSizeUpper) {
10 maxMethodName = methodName;
11 methodSizeLower = lower;
12 methodSizeUpper = upper;
17 public String toString() {
18 if(methodSizeLower == methodSizeUpper)
19 return maxMethodName + " " + methodSizeLower;
21 return maxMethodName + " [" + methodSizeLower + "," + methodSizeUpper + "]";