From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 82B8A1381F3 for ; Thu, 25 Apr 2013 16:44:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C3DEE0B9D; Thu, 25 Apr 2013 16:44:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 00831E0B9B for ; Thu, 25 Apr 2013 16:44:23 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D925633DF5F for ; Thu, 25 Apr 2013 16:44:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 1A390E4419 for ; Thu, 25 Apr 2013 16:44:20 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1366902428.f53903b04fc9f3ae739ea88bfbda616fb5de32e3.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/overlay/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/overlay/creator.py X-VCS-Directories: roverlay/overlay/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: f53903b04fc9f3ae739ea88bfbda616fb5de32e3 X-VCS-Branch: master Date: Thu, 25 Apr 2013 16:44:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: db08978b-623c-4740-a73c-db46fba15da6 X-Archives-Hash: a41f92b77a950f8f1c86ee3503d2496b commit: f53903b04fc9f3ae739ea88bfbda616fb5de32e3 Author: André Erdmann mailerd de> AuthorDate: Thu Apr 25 15:07:08 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Thu Apr 25 15:07:08 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=f53903b0 overlay/creator: add scan_overlay time stats --- roverlay/overlay/creator.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/roverlay/overlay/creator.py b/roverlay/overlay/creator.py index 6aa5af9..931a2ff 100644 --- a/roverlay/overlay/creator.py +++ b/roverlay/overlay/creator.py @@ -95,6 +95,7 @@ class OverlayCreator ( object ): # this queue is used to propagate exceptions from threads self._err_queue = errorqueue.ErrorQueue() + time_scan_overlay = time.time() # init overlay using config values self.overlay = Overlay.new_configured ( logger = self.logger, @@ -103,6 +104,7 @@ class OverlayCreator ( object ): skip_manifest = skip_manifest, runtime_incremental = immediate_ebuild_writes, ) + time_scan_overlay = time.time() - time_scan_overlay self.depresolver = easyresolver.setup ( self._err_queue ) self.depresolver.make_selfdep_pool ( self.overlay.list_rule_kwargs ) @@ -138,6 +140,9 @@ class OverlayCreator ( object ): self._timestats = collections.OrderedDict() + if incremental and time_scan_overlay >= 0.1: + self._timestats ['scan_overlay'] = time_scan_overlay + for k in ( 'sync_packages', 'add_packages',