From a6c1fe824002d022ff3ba7c8b93987965db29641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 12 Jul 2017 15:41:49 +0200 Subject: size: Add '--sort=KEY'. * guix/scripts/size.scm (profile-closure name1 self1 total1) + ($ name2 self2 total2)) + (< total1 total2)))) + +(define profile-self name1 self1 total1) + ($ name2 self2 total2)) + (< self1 self2)))) + +(define* (display-profile profile #:optional (port (current-output-port)) + #:key (profile name1 self1 total1) - ($ name2 self2 total2)) - (> total1 total2))))) + (sort profile (negate profilepage-map profile map-file) (return #t)) - (display-profile* profile))) + (display-profile* profile (current-output-port) + #:profile