Use feature flag to enable evaluator intra-layer parallelism
This commit is contained in:
parent
81ae676e79
commit
bc068d74aa
9 changed files with 33 additions and 6 deletions
|
|
@ -160,6 +160,7 @@ export interface CodeQL {
|
|||
querySuitePath: string | undefined,
|
||||
flags: string[],
|
||||
optimizeForLastQueryRun: boolean,
|
||||
features: FeatureEnablement,
|
||||
): Promise<void>;
|
||||
/**
|
||||
* Run 'codeql database interpret-results'.
|
||||
|
|
@ -756,6 +757,7 @@ export async function getCodeQLForCmd(
|
|||
querySuitePath: string | undefined,
|
||||
flags: string[],
|
||||
optimizeForLastQueryRun: boolean,
|
||||
features: FeatureEnablement,
|
||||
): Promise<void> {
|
||||
const codeqlArgs = [
|
||||
"database",
|
||||
|
|
@ -778,6 +780,14 @@ export async function getCodeQLForCmd(
|
|||
if (querySuitePath) {
|
||||
codeqlArgs.push(querySuitePath);
|
||||
}
|
||||
if (
|
||||
await features.getValue(
|
||||
Feature.EvaluatorIntraLayerParallelismEnabled,
|
||||
this,
|
||||
)
|
||||
) {
|
||||
codeqlArgs.push("--intra-layer-parallelism");
|
||||
}
|
||||
await runTool(cmd, codeqlArgs);
|
||||
},
|
||||
async databaseInterpretResults(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue