All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gridkit.jvmtool.stacktrace.analytics.EventCountWeightCalculator Maven / Gradle / Ivy

package org.gridkit.jvmtool.stacktrace.analytics;

import org.gridkit.jvmtool.event.CommonEvent;

class EventCountWeightCalculator implements WeigthCalculator {

    @Override
    public long getWeigth(CommonEvent event) {
        return 1;
    }

    @Override
    public long getDenominator() {
        return 1;
    }

    @Override
    public String formatWeight(CaptionFlavour flavour, long weight) {
        switch (flavour) {
            default:
                return String.format("%d events", weight);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy