Merge pull request #28880 from overleaf/bg-add-time-option-to-clsi

add latexmk `-time` option to clsi and record performance logs

GitOrigin-RevId: 467473859359913da73f83e10b63b45603ea175c
This commit is contained in:
Brian Gough
2025-10-09 08:06:12 +00:00
committed by Copybot
parent 3913008e02
commit d24f37d3a4
12 changed files with 441 additions and 8 deletions
@@ -67,4 +67,31 @@ Hello world
})
.should.equal(true)
})
it('should return only the expected keys for stats and timings', function () {
const { stats, timings } = this.body.compile
// Note: chai's all.keys assertion rejects extra keys
stats.should.have.all.keys(
'isInitialCompile',
'latexmk-errors',
'latex-runs',
'latex-runs-with-errors',
'latex-runs-2',
'latex-runs-with-errors-2',
'pdf-caching-total-ranges-size',
'pdf-caching-reclaimed-space',
'pdf-caching-new-ranges-size',
'pdf-caching-n-ranges',
'pdf-caching-n-new-ranges',
'pdf-size'
)
timings.should.have.all.keys(
'sync',
'compile',
'output',
'compileE2E',
'compute-pdf-caching',
'pdf-caching-overhead-delete-stale-hashes'
)
})
})