1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 10:16:10 +02:00

enhance(dev): メモリ使用量比較のActionsでGCしてから取得する

Resolve #16961
This commit is contained in:
syuilo
2026-01-14 16:12:44 +09:00
parent bd81a6c8ad
commit ec683f04d1
3 changed files with 9 additions and 2 deletions

View File

@@ -25,11 +25,13 @@ async function measureMemory() {
const startTime = Date.now();
// Start the Misskey backend server using fork to enable IPC
const serverProcess = fork(join(__dirname, '../built/boot/entry.js'), [], {
const serverProcess = fork(join(__dirname, '../built/boot/entry.js'), ['expose-gc'], {
cwd: join(__dirname, '..'),
env: {
...process.env,
NODE_ENV: 'test',
NODE_ENV: 'production',
MK_DISABLE_CLUSTERING: '1',
MK_FORCE_GC: '1',
},
stdio: ['pipe', 'pipe', 'pipe', 'ipc'],
});