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

com.fillumina.performance.producer.DefaultInstrumenterPerformanceProducer Maven / Gradle / Ivy

Go to download

Configurable tool to easily compare performances of different code snippets and to take performance telemetry of a running application.

The newest version!
package com.fillumina.performance.producer;

/**
 *
 * @author Francesco Illuminati
 */
public class DefaultInstrumenterPerformanceProducer
        >
    extends AbstractPerformanceProducer
    implements PerformanceExecutorInstrumenter {

    private static final long serialVersionUID = 1L;

    /*
     * Using a delegate to not duplicate
     * {@link DefaultPerformanceExecutorInstrumenter}'s code.
     */
    private DefaultPerformanceExecutorInstrumenter delegate
            = new DefaultPerformanceExecutorInstrumenter<>();

    @Override
    public DefaultInstrumenterPerformanceProducer instrument(
            final InstrumentablePerformanceExecutor performanceExecutor) {
        delegate.instrument(performanceExecutor);
        return this;
    }

    /**  @return the embedded {@link InstrumentablePerformanceExecutor}. */
    public InstrumentablePerformanceExecutor getPerformanceExecutor() {
        return delegate.getPerformanceExecutor();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy