core icon indicating copy to clipboard operation
core copied to clipboard

bashlib: fill ocrd.process.profile logger

Open bertsky opened this issue 2 years ago • 1 comments

We are currently blind in our process/profiling logger to any bashlib-based processors (which step ran and how much time was spent).

Implementing this with bash is probably not so easy – you have to keep track of and aggregate CPU-time from all subprocesses forked by the shell through the script.

bertsky avatar Mar 17 '23 16:03 bertsky

IMO this should be done based on the recipe described for the API changes.

So this would require a rewrite of all bashlib processors – but we need to do that anyway. (And the page loop is usually based on our input_files array now, but still clumsy and requires lots of boilerplate.)

bertsky avatar Mar 20 '23 09:03 bertsky