Added memory profiler configuration options.

This commit is contained in:
DebaucheryLibrarian
2021-12-27 22:36:01 +01:00
parent 605242b399
commit 3b958a02ef
3 changed files with 12 additions and 1 deletions

View File

@@ -247,6 +247,12 @@ const { argv } = yargs
type: 'boolean',
default: process.env.NODE_ENV === 'development',
})
.option('sampleMemory', {
alias: 'memory',
describe: 'Take memory allocation samples, and snapshots at configured intervals',
type: 'boolean',
default: config.memorySampling.enabled,
})
.option('update-search', {
describe: 'Update search documents for all releases.',
type: 'boolean',