Log the time spent in a locked section
This commit is contained in:
parent
f23223f16d
commit
185ba36853
1 changed files with 5 additions and 1 deletions
|
|
@ -279,7 +279,11 @@ WHERE job_id = $1"
|
|||
(let ((time-taken (- (current-time) start-time)))
|
||||
(simple-format #t "debug: Finished aquiring lock ~A, took ~A seconds\n"
|
||||
lock time-taken))
|
||||
(f)))))
|
||||
(let ((result (f)))
|
||||
(let ((time-spent (- (current-time) start-time)))
|
||||
(simple-format #t "debug: Releasing lock ~A, spent ~A seconds\n"
|
||||
lock time-spent))
|
||||
result)))))
|
||||
|
||||
(define (all-inferior-system-tests inf store)
|
||||
(define extract
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue