Class AutoSetThreads
- java.lang.Object
-
- org.pitest.mutationtest.autoconfig.AutoSetThreads
-
- All Implemented Interfaces:
ConfigurationUpdater,ProvidesFeature,ToolClasspathPlugin
public class AutoSetThreads extends Object implements ConfigurationUpdater
Autosets number of threads based on the number of processors reported by the runtime. The optimum number to use will vary hugely with each codebase. Simplistic formula used here is unlikely to find the best setting, but will make a coarse guess for the current machine based on the number of reported cores. This number itself might be wrong in virtual environments, so feature is best used for local development only. Disabled by default to ensure build is consistent.
-
-
Constructor Summary
Constructors Constructor Description AutoSetThreads()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Featureprovides()voidupdateConfig(FeatureSetting conf, ReportOptions toModify)
-
-
-
Method Detail
-
updateConfig
public void updateConfig(FeatureSetting conf, ReportOptions toModify)
- Specified by:
updateConfigin interfaceConfigurationUpdater
-
provides
public Feature provides()
- Specified by:
providesin interfaceProvidesFeature
-
description
public String description()
- Specified by:
descriptionin interfaceToolClasspathPlugin
-
-