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

com.fillumina.performance.producer.DefaultPerformanceExecutorInstrumenter 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;

import java.io.Serializable;

/**
 *
 * @author Francesco Illuminati
 */
public class DefaultPerformanceExecutorInstrumenter
            
        implements PerformanceExecutorInstrumenter, Serializable {
    private static final long serialVersionUID = 1L;

    private InstrumentablePerformanceExecutor performanceExecutor;

    /**
     * Mandatory.
     * Most of the time it is not called directly by user code.
     */
    @Override
    @SuppressWarnings(value = "unchecked")
    public T instrument(final InstrumentablePerformanceExecutor performanceExecutor) {
        this.performanceExecutor = performanceExecutor;
        return (T) this;
    }

    public InstrumentablePerformanceExecutor getPerformanceExecutor() {
        return performanceExecutor;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy