mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Removed V8 profiler
This commit is contained in:
parent
7d204e01a5
commit
c70a6bb92b
3 changed files with 4078 additions and 2063 deletions
|
@ -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 = {
|
||||||
|
|
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",
|
"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",
|
||||||
|
|
Loading…
Reference in a new issue