Package proguard.analysis
Class Metrics
- java.lang.Object
-
- proguard.analysis.Metrics
-
public class Metrics extends java.lang.ObjectUtility to collect statistical information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetrics.MetricTypeConstants which are used as metric types.
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<Metrics.MetricType,java.lang.Integer>counts
-
Constructor Summary
Constructors Constructor Description Metrics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringflush()Get all collected data as a string and clear it afterwards.static voidincreaseCount(Metrics.MetricType type)static voidsetIfMax(Metrics.MetricType type, int value)Set the value of the metric to the given value if it's bigger than the current value.
-
-
-
Field Detail
-
counts
public static final java.util.Map<Metrics.MetricType,java.lang.Integer> counts
-
-
Method Detail
-
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 metricvalue- the value to set
-
flush
public static java.lang.String flush()
Get all collected data as a string and clear it afterwards.
-
-