mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #26 from overleaf/msm-remove-v8-profiler
Removed V8 profiler
This commit is contained in:
commit
188724ccfb
3 changed files with 4078 additions and 2063 deletions
|
@ -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 = {
|
||||
|
|
6128
services/chat/npm-shrinkwrap.json
generated
6128
services/chat/npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue