Package proguard.analysis
Class Metrics
java.lang.Object
proguard.analysis.Metrics
Utility to collect statistical information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConstants which are used as metric types. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringflush()Get all collected data as a string and clear it afterwards.static voidstatic 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 Details
-
counts
-
-
Constructor Details
-
Metrics
public Metrics()
-
-
Method Details
-
increaseCount
-
setIfMax
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
Get all collected data as a string and clear it afterwards.
-