org.qbicc.plugin.metrics.CountMetric Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qbicc-plugin-metrics Show documentation
Show all versions of qbicc-plugin-metrics Show documentation
Support for tracking times and counts during compilation
package org.qbicc.plugin.metrics;
public final class CountMetric extends Metric {
CountMetric(String name, CountMetric parent) {
super(name, parent);
}
@Override
CountMetric constructChild(String name) {
return new CountMetric(name, this);
}
public void add(long amount) {
addRawValue(amount);
}
@Override
String getDescription() {
return "Count";
}
@Override
public StringBuilder getFormattedValue(StringBuilder target) {
return target.append(Long.toUnsignedString(getRawValue()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy