Commit c95d035e authored by Nikolay Gromov's avatar Nikolay Gromov

Автоматизация: закомментил тестирование съедаемой памяти

parent 1a0b3b5d
...@@ -2,15 +2,13 @@ ...@@ -2,15 +2,13 @@
/* eslint-disable no-console */ /* eslint-disable no-console */
'use strict'; 'use strict';
setInterval(function(){ // eslint-disable-line // Проверка количества съедаемой памяти
let memory = process.memoryUsage() // setInterval(function(){ // eslint-disable-line
let date = new Date(); // let memory = process.memoryUsage()
console.log(`[${addZero(date.getHours())}:${addZero(date.getMinutes())}:${addZero(date.getSeconds())}]`, 'Memory usage (heapUsed):', (memory.heapUsed / 1024 / 1024).toFixed(2) + 'Mb'); // let date = new Date();
}, 1000 * 10); // console.log(`[${addZero(date.getHours())}:${addZero(date.getMinutes())}:${addZero(date.getSeconds())}]`, 'Memory usage (heapUsed):', (memory.heapUsed / 1024 / 1024).toFixed(2) + 'Mb');
// }, 1000 * 10);
function addZero(i) { // function addZero(i) { return (i < 10) ? i = "0" + i : i;}
return (i < 10) ? i = "0" + i : i;
}
// Пакеты, использующиеся при обработке // Пакеты, использующиеся при обработке
const { series, parallel, src, dest, watch, lastRun } = require('gulp'); const { series, parallel, src, dest, watch, lastRun } = require('gulp');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment