[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/14: Add some time logging in to inferior-packages-plus-replacements
From: |
Christopher Baines |
Subject: |
06/14: Add some time logging in to inferior-packages-plus-replacements |
Date: |
Fri, 2 Feb 2024 10:58:39 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit ba97ade781d2adf201d3fe896f945fa406716e8f
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sun Jan 28 09:10:01 2024 +0000
Add some time logging in to inferior-packages-plus-replacements
---
guix-data-service/jobs/load-new-guix-revision.scm | 24 +++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm
b/guix-data-service/jobs/load-new-guix-revision.scm
index 141ebdd..82ad400 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -649,10 +649,13 @@
(let* ((packages
;; The use of force in (guix inferior) introduces a continuation
;; barrier
- (call-with-temporary-thread
- (lambda ()
- (inferior-packages inf))))
- (replacements (map inferior-package-replacement packages))
+ (with-time-logging "calling inferior-packages"
+ (call-with-temporary-thread
+ (lambda ()
+ (inferior-packages inf)))))
+ (replacements
+ (with-time-logging "getting inferior package replacements"
+ (map inferior-package-replacement packages)))
(pkg-to-replacement-hash-table
(let ((ht (make-hash-table)))
(for-each
@@ -685,12 +688,13 @@
;; same name and version, but different derivations. Guix will warn
;; about this case though, generally this means only one of the
;; packages should be exported.
- (call-with-temporary-thread
- (lambda ()
- ;; TODO Sort introduces a continuation barrier
- (sort-and-deduplicate-inferior-packages
- (append! packages non-exported-replacements)
- pkg-to-replacement-hash-table))))
+ (with-time-logging "deduplicating inferior packages"
+ (call-with-temporary-thread
+ (lambda ()
+ ;; TODO Sort introduces a continuation barrier
+ (sort-and-deduplicate-inferior-packages
+ (append! packages non-exported-replacements)
+ pkg-to-replacement-hash-table)))))
(deduplicated-packages-length
(length deduplicated-packages)))
- branch master updated (e0a6c84 -> ac1a4cb), Christopher Baines, 2024/02/02
- 01/14: Remove some time logging, Christopher Baines, 2024/02/02
- 04/14: Remove even more time logging, Christopher Baines, 2024/02/02
- 02/14: Log the time to call inferior-packages-plus-replacements, Christopher Baines, 2024/02/02
- 05/14: Make sure to keep roots for channel instance derivations, Christopher Baines, 2024/02/02
- 07/14: Add more logging in when computing channel instance derivations, Christopher Baines, 2024/02/02
- 09/14: Split up handling of package description data, Christopher Baines, 2024/02/02
- 10/14: Fix exception handling in call-with-temporary-thread, Christopher Baines, 2024/02/02
- 12/14: Speed up loading package metadata, Christopher Baines, 2024/02/02
- 14/14: Cleanup some with-time-logging, Christopher Baines, 2024/02/02
- 06/14: Add some time logging in to inferior-packages-plus-replacements,
Christopher Baines <=
- 11/14: Ignore inferior-protocol-error when computing channel instances, Christopher Baines, 2024/02/02
- 13/14: Compute lint warnings in parallel, Christopher Baines, 2024/02/02
- 08/14: Speed up fetching package replacements, Christopher Baines, 2024/02/02
- 03/14: Improve logging when computing a channel instance derivation fails, Christopher Baines, 2024/02/02