Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 2dcdbf9c37 1.204.3 2021-12-27 22:36:03 +01:00
DebaucheryLibrarian 3b958a02ef Added memory profiler configuration options. 2021-12-27 22:36:01 +01:00
5 changed files with 15 additions and 4 deletions

View File

@ -316,6 +316,10 @@ module.exports = {
},
fetchAfter: [1, 'week'],
missingDateLimit: 3,
memorySampling: {
enabled: false,
snapshotIntervals: [],
},
media: {
path: './media',
thumbnailSize: 320, // width for 16:9 will be exactly 576px

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.204.2",
"version": "1.204.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.204.2",
"version": "1.204.3",
"license": "ISC",
"dependencies": {
"@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.204.2",
"version": "1.204.3",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

@ -1,5 +1,6 @@
'use strict';
const config = require('config');
const util = require('util');
const log = require('why-is-node-running');
const Inspector = require('inspector-api');
@ -84,7 +85,7 @@ async function startMemorySample(snapshotTriggers = []) {
async function init() {
try {
if (argv.sampleMemory) {
await startMemorySample([1000]);
await startMemorySample(config.memorySampling.snapshotIntervals);
}
if (argv.logActive) {

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',