Search in sources :

Example 1 with DefaultPerformanceTracker

use of tech.pegasys.teku.validator.coordinator.performance.DefaultPerformanceTracker in project teku by ConsenSys.

the class BeaconChainController method initPerformanceTracker.

protected void initPerformanceTracker() {
    LOG.debug("BeaconChainController.initPerformanceTracker()");
    ValidatorPerformanceTrackingMode mode = beaconConfig.validatorConfig().getValidatorPerformanceTrackingMode();
    if (mode.isEnabled()) {
        performanceTracker = new DefaultPerformanceTracker(combinedChainDataClient, STATUS_LOG, new ValidatorPerformanceMetrics(metricsSystem), beaconConfig.validatorConfig().getValidatorPerformanceTrackingMode(), activeValidatorTracker, new SyncCommitteePerformanceTracker(spec, combinedChainDataClient), spec);
        eventChannels.subscribe(SlotEventsChannel.class, performanceTracker);
    } else {
        performanceTracker = new NoOpPerformanceTracker();
    }
}
Also used : ValidatorPerformanceTrackingMode(tech.pegasys.teku.validator.api.ValidatorPerformanceTrackingMode) ValidatorPerformanceMetrics(tech.pegasys.teku.validator.coordinator.performance.ValidatorPerformanceMetrics) SyncCommitteePerformanceTracker(tech.pegasys.teku.validator.coordinator.performance.SyncCommitteePerformanceTracker) NoOpPerformanceTracker(tech.pegasys.teku.validator.coordinator.performance.NoOpPerformanceTracker) DefaultPerformanceTracker(tech.pegasys.teku.validator.coordinator.performance.DefaultPerformanceTracker)

Aggregations

ValidatorPerformanceTrackingMode (tech.pegasys.teku.validator.api.ValidatorPerformanceTrackingMode)1 DefaultPerformanceTracker (tech.pegasys.teku.validator.coordinator.performance.DefaultPerformanceTracker)1 NoOpPerformanceTracker (tech.pegasys.teku.validator.coordinator.performance.NoOpPerformanceTracker)1 SyncCommitteePerformanceTracker (tech.pegasys.teku.validator.coordinator.performance.SyncCommitteePerformanceTracker)1 ValidatorPerformanceMetrics (tech.pegasys.teku.validator.coordinator.performance.ValidatorPerformanceMetrics)1