mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Removed V8 profiler
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user