public abstract class AbstractPerfCommand<CommandContext> extends AbstractCommand
commandArgsFile
Constructor and Description |
---|
AbstractPerfCommand() |
Modifier and Type | Method and Description |
---|---|
protected StackedFileHashCache |
createStackedFileHashCache(CommandRunnerParams params)
Creates a
StackedFileHashCache similar to a real command but that uses our hash-faking
delegate. |
protected abstract String |
getComputationName() |
protected static com.google.common.collect.ImmutableList<BuildRule> |
getRulesInGraph(ActionGraphBuilder graphBuilder,
Iterable<BuildTarget> targets)
Gets a list of the rules in the graph reachable from the provided targets.
|
protected TargetGraphCreationResult |
getTargetGraph(CommandRunnerParams params,
com.google.common.collect.ImmutableSet<BuildTarget> targets)
Most of our perf tests require a target graph, this helps them get it concisely.
|
protected static void |
initializeRulesFromDisk(ActionGraphBuilder graphBuilder,
com.google.common.collect.ImmutableList<BuildRule> rulesInGraph)
Calls initializeFromDisk() on all the initializable rules in the graph.
|
boolean |
isReadOnly() |
ExitCode |
runWithoutHelp(CommandRunnerParams params) |
addCommandSpecificConfigOverrides, convertArgumentsToBuildTargets, createParsingContext, getCommandArgsFile, getCommandLineBuildTargetNormalizer, getConcurrencyLimit, getConfigOverrides, getEnableParserProfiling, getEventListeners, getEventsOutputPath, getExcludeIncompatibleTargets, getExecutionContext, getExecutionContextBuilder, getHostPlatform, getLogConfig, getTargetPlatforms, handleException, handleException, isNoCache, isReuseCurrentConfig, isSourceControlStatsGatheringEnabled, matchBuildTargetsWithLabelsFromSpecs, performsBuild, prepareExecutionContext, printUsage, printWarning, printWarning, run, runHelp
getPluginManager, setPluginManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getShortDescription
protected abstract String getComputationName()
public final ExitCode runWithoutHelp(CommandRunnerParams params) throws Exception
runWithoutHelp
in class AbstractCommand
Exception
protected TargetGraphCreationResult getTargetGraph(CommandRunnerParams params, com.google.common.collect.ImmutableSet<BuildTarget> targets) throws InterruptedException, IOException, VersionException
protected static void initializeRulesFromDisk(ActionGraphBuilder graphBuilder, com.google.common.collect.ImmutableList<BuildRule> rulesInGraph) throws IOException
IOException
protected static com.google.common.collect.ImmutableList<BuildRule> getRulesInGraph(ActionGraphBuilder graphBuilder, Iterable<BuildTarget> targets) throws CycleException
CycleException
protected StackedFileHashCache createStackedFileHashCache(CommandRunnerParams params) throws InterruptedException
StackedFileHashCache
similar to a real command but that uses our hash-faking
delegate.InterruptedException
public final boolean isReadOnly()