mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 06:39:01 +02:00
Revert "Merge pull request #24 from sharelatex/bg-add-profile"
This reverts commit 8f507dcc9fbcd51072047c82a443137aaac0f377, reversing changes made to 70abd7a155b396e3b44ce21ff8d36be6ad03a060.
This commit is contained in:
@@ -75,15 +75,6 @@ app.get "/check_lock", HttpController.checkLock
|
||||
|
||||
app.get "/health_check", HttpController.healthCheck
|
||||
|
||||
profiler = require "v8-profiler"
|
||||
app.get "/profile", (req, res) ->
|
||||
time = parseInt(req.query.time || "1000")
|
||||
profiler.startProfiling("test")
|
||||
setTimeout () ->
|
||||
profile = profiler.stopProfiling("test")
|
||||
res.json(profile)
|
||||
, time
|
||||
|
||||
app.use (error, req, res, next) ->
|
||||
logger.error err: error, req: req, "an internal error occured"
|
||||
res.send 500
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
"mongo-uri": "^0.1.2",
|
||||
"s3-streams": "^0.3.0",
|
||||
"JSONStream": "^1.0.4",
|
||||
"heap": "^0.2.6",
|
||||
"v8-profiler": "^5.6.5"
|
||||
"heap": "^0.2.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "~1.9.0",
|
||||
|
||||
Reference in New Issue
Block a user