Merge pull request #26 from overleaf/msm-remove-v8-profiler

Removed V8 profiler
This commit is contained in:
Miguel Serrano 2019-07-18 12:47:33 +02:00 committed by GitHub
commit 188724ccfb
3 changed files with 4078 additions and 2063 deletions

View file

@ -33,16 +33,6 @@ if (app.get('env') === 'production') {
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)
module.exports = {

File diff suppressed because it is too large Load diff

View file

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