Removed V8 profiler

This commit is contained in:
mserranom 2019-07-18 09:42:38 +00:00
parent 7d204e01a5
commit c70a6bb92b
3 changed files with 4078 additions and 2063 deletions

View file

@ -33,16 +33,6 @@ if (app.get('env') === 'production') {
app.use(express.errorHandler()) app.use(express.errorHandler())
} }
const profiler = require('v8-profiler')
app.get('/profile', function(req, res) {
const time = parseInt(req.query.time || '1000')
profiler.startProfiling('test')
return setTimeout(function() {
const profile = profiler.stopProfiling('test')
return res.json(profile)
}, time)
})
Router.route(app) Router.route(app)
module.exports = { module.exports = {

File diff suppressed because it is too large Load diff

View file

@ -25,8 +25,7 @@
"mongojs": "2.4.0", "mongojs": "2.4.0",
"redis": "~0.10.1", "redis": "~0.10.1",
"request": "^2.79.0", "request": "^2.79.0",
"settings-sharelatex": "^1.1.0", "settings-sharelatex": "^1.1.0"
"v8-profiler": "^5.6.5"
}, },
"devDependencies": { "devDependencies": {
"acorn": "^6.1.1", "acorn": "^6.1.1",