Compare commits
2 Commits
605242b399
...
2dcdbf9c37
Author | SHA1 | Date |
---|---|---|
|
2dcdbf9c37 | |
|
3b958a02ef |
|
@ -316,6 +316,10 @@ module.exports = {
|
||||||
},
|
},
|
||||||
fetchAfter: [1, 'week'],
|
fetchAfter: [1, 'week'],
|
||||||
missingDateLimit: 3,
|
missingDateLimit: 3,
|
||||||
|
memorySampling: {
|
||||||
|
enabled: false,
|
||||||
|
snapshotIntervals: [],
|
||||||
|
},
|
||||||
media: {
|
media: {
|
||||||
path: './media',
|
path: './media',
|
||||||
thumbnailSize: 320, // width for 16:9 will be exactly 576px
|
thumbnailSize: 320, // width for 16:9 will be exactly 576px
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.204.2",
|
"version": "1.204.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.204.2",
|
"version": "1.204.3",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@casl/ability": "^5.2.2",
|
"@casl/ability": "^5.2.2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.204.2",
|
"version": "1.204.3",
|
||||||
"description": "All the latest porn releases in one place",
|
"description": "All the latest porn releases in one place",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
const config = require('config');
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
const log = require('why-is-node-running');
|
const log = require('why-is-node-running');
|
||||||
const Inspector = require('inspector-api');
|
const Inspector = require('inspector-api');
|
||||||
|
@ -84,7 +85,7 @@ async function startMemorySample(snapshotTriggers = []) {
|
||||||
async function init() {
|
async function init() {
|
||||||
try {
|
try {
|
||||||
if (argv.sampleMemory) {
|
if (argv.sampleMemory) {
|
||||||
await startMemorySample([1000]);
|
await startMemorySample(config.memorySampling.snapshotIntervals);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argv.logActive) {
|
if (argv.logActive) {
|
||||||
|
|
|
@ -247,6 +247,12 @@ const { argv } = yargs
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: process.env.NODE_ENV === 'development',
|
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', {
|
.option('update-search', {
|
||||||
describe: 'Update search documents for all releases.',
|
describe: 'Update search documents for all releases.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
|
|
Loading…
Reference in New Issue