From patchwork Sat Aug 17 17:18:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1148746 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="q4qK8WA4"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 469n3P3mXkz9sDQ for ; Sun, 18 Aug 2019 03:18:57 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 96B5D21FF8; Sat, 17 Aug 2019 17:18:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7XPw1Jih2u3p; Sat, 17 Aug 2019 17:18:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id EB9AD2155B; Sat, 17 Aug 2019 17:18:43 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C954D1BF402 for ; Sat, 17 Aug 2019 17:18:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BE8D48634E for ; Sat, 17 Aug 2019 17:18:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wpvBYmoGY353 for ; Sat, 17 Aug 2019 17:18:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id B8AA08631D for ; Sat, 17 Aug 2019 17:18:39 +0000 (UTC) Received: by mail-wr1-f52.google.com with SMTP id y8so4536740wrn.10 for ; Sat, 17 Aug 2019 10:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ez1EjgOLRz/sfsnCa+cUNoZNsvGSz+QoReU56c2boOY=; b=q4qK8WA4AaM9ZJ5KzTG1ngTilRFp9lns2FyjjgOrcjeHx0aTFkja3iDTN8lLIL5NNC mMKz8tmKQx26OuTJwoJ0giUx/rsjE/g4B+A3tWsG/GVuFnlxewWkh9NU9O1ihNe09Y4h 8INg2yQ7qWDWtNyddF6nfYZwbc8bzy5aryFCQgyXvUbtLsGL1/PvsZTpaZGrpdMB5rYU GFCsKy5D4TJJUVjQZX+ErNlRK7wdgTEzKGXGJN2LMKYy+j5LUx0WeAYHqAjGn5/s8jXw ZsCIrkJxPOwdYPy4czj4bv9BjKBPzMsi3N2X4fD+coqFQKSsHmc8PyysTZj7KCkRYQbS srYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Ez1EjgOLRz/sfsnCa+cUNoZNsvGSz+QoReU56c2boOY=; b=IDLRnnJBmpw0IMNWG6a1QPRRORNuMaDYv8Ac/EtJHIrtSTO/KrdWBVc5iaCwGiazWX oVY4WmvcLb/S0KI4WenFlApzQq9rWakJfrOed+F35q9rf4JbvPZmnG5Va8VwWmEn+wUJ xq2+0bBeHqsW0XCZ2Vu12FEEhoL7LjeIU1JAZp1eTsh6mAs16AkdW3zs6fKHyceu/Dfm MfTGmvaSCy7HrVFSufvuBZfRvlAYMql/iTh34SFV8ylCgPnmBmP8xPNtibKZgtqxr/zG 8dC3ohjROwljDRzaNXjRd6TcRxIlV0tmq3u+FG1G7Aoyty40vShZkkKTrFRqk6sVbfZw VQ/Q== X-Gm-Message-State: APjAAAUdMXoF30sp9CFkjZgKnsLV3LtePxUUXKwv453js6v2US5KPTZt 7EkT3dYIWuLHfrUB2//FOwZbYDRR X-Google-Smtp-Source: APXvYqwsZf4ghtmeMbxJuCFbb3P5xJDIL4ScNKHrAdApjJfAfmdAaTYDB9ptXkuv+LHcO0j39IUrfA== X-Received: by 2002:adf:e801:: with SMTP id o1mr17826540wrm.45.1566062317939; Sat, 17 Aug 2019 10:18:37 -0700 (PDT) Received: from localhost.localdomain (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id w13sm20864877wre.44.2019.08.17.10.18.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Aug 2019 10:18:37 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sat, 17 Aug 2019 19:18:25 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 4/9] support/graph-size: report 'Unkown" after all packages, but before "Others" X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E. MORIN" , Thomas De Schampheleire Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Currently, the "unknown" category may be reproted anywhere, so it does not really stand out when there are a lot of packages in the graph. Move it towards the end, but right before the "other" category, so that it is a bit more visible. Like for Others, don;t report it if its size is zero. Signed-off-by: Yann E. MORIN Cc: Thomas De Schampheleire --- support/scripts/size-stats | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/support/scripts/size-stats b/support/scripts/size-stats index 398c256e8b..82258e4606 100755 --- a/support/scripts/size-stats +++ b/support/scripts/size-stats @@ -131,12 +131,18 @@ def draw_graph(pkgsize, outputf): labels = [] values = [] other_value = 0 + unknown_value = 0 for (p, sz) in sorted(pkgsize.items(), key=lambda x: x[1]): if sz < (total * 0.01): other_value += sz + elif p == "unknown": + unknown_value = sz else: labels.append("%s (%d kB)" % (p, sz / 1000.)) values.append(sz) + if unknown_value != 0: + labels.append("Unknown (%d kB)" % (unknown_value / 1000.)) + values.append(unknown_value) if other_value != 0: labels.append("Other (%d kB)" % (other_value / 1000.)) values.append(other_value)