Class Metrics

java.lang.Object
proguard.analysis.Metrics

public class Metrics extends Object
Utility to collect statistical information.
  • Field Details

  • Constructor Details

    • Metrics

      public Metrics()
  • Method Details

    • increaseCount

      public static void increaseCount(Metrics.MetricType type)
    • setIfMax

      public static void setIfMax(Metrics.MetricType type, int value)
      Set the value of the metric to the given value if it's bigger than the current value.
      Parameters:
      type - the type of metric
      value - the value to set
    • flush

      public static String flush()
      Get all collected data as a string and clear it afterwards.