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, runHelpgetPluginManager, setPluginManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetShortDescriptionprotected abstract String getComputationName()
public final ExitCode runWithoutHelp(CommandRunnerParams params) throws Exception
runWithoutHelp in class AbstractCommandExceptionprotected 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
IOExceptionprotected static com.google.common.collect.ImmutableList<BuildRule> getRulesInGraph(ActionGraphBuilder graphBuilder, Iterable<BuildTarget> targets) throws CycleException
CycleExceptionprotected StackedFileHashCache createStackedFileHashCache(CommandRunnerParams params) throws InterruptedException
StackedFileHashCache similar to a real command but that uses our hash-faking
delegate.InterruptedExceptionpublic final boolean isReadOnly()