mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] add timings for the sync stage and output stage
This commit is contained in:
parent
3185bdacf7
commit
efa0c54ca5
1 changed files with 7 additions and 1 deletions
|
@ -114,7 +114,7 @@ module.exports = CompileManager = {
|
|||
},
|
||||
'written files to disk'
|
||||
)
|
||||
timer.done()
|
||||
const syncStage = timer.done()
|
||||
|
||||
const injectDraftModeIfRequired = function (callback) {
|
||||
if (request.draft) {
|
||||
|
@ -295,6 +295,8 @@ module.exports = CompileManager = {
|
|||
// Emit compile time.
|
||||
timings.compile = ts
|
||||
|
||||
timer = new Metrics.Timer('process-output-files')
|
||||
|
||||
return OutputFileFinder.findOutputFiles(
|
||||
resourceList,
|
||||
compileDir,
|
||||
|
@ -319,6 +321,10 @@ module.exports = CompileManager = {
|
|||
)
|
||||
}
|
||||
|
||||
const outputStage = timer.done()
|
||||
timings.sync = syncStage
|
||||
timings.output = outputStage
|
||||
|
||||
// Emit e2e compile time.
|
||||
timings.compileE2E = timerE2E.done()
|
||||
|
||||
|
|
Loading…
Reference in a new issue