Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C987210B18 for ; Wed, 26 Feb 2014 21:35:31 +0000 (UTC) Received: (qmail 11777 invoked by uid 500); 26 Feb 2014 21:35:31 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 11738 invoked by uid 500); 26 Feb 2014 21:35:31 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 11729 invoked by uid 99); 26 Feb 2014 21:35:30 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 21:35:30 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 9518389F943; Wed, 26 Feb 2014 21:35:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org Date: Wed, 26 Feb 2014 21:35:30 -0000 Message-Id: <59f7570d97024fbeb084beba52d45519@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: [#7224] time many more pymongo & ming methods Repository: incubator-allura Updated Branches: refs/heads/master 1d044d9bb -> 4d4e1d806 [#7224] time many more pymongo & ming methods Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/7ad8965e Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/7ad8965e Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/7ad8965e Branch: refs/heads/master Commit: 7ad8965e8bcff3246921e38bc0a3b2e34d50b324 Parents: 1d044d9 Author: Dave Brondsema Authored: Wed Feb 26 16:48:20 2014 +0000 Committer: Dave Brondsema Committed: Wed Feb 26 16:48:20 2014 +0000 ---------------------------------------------------------------------- Allura/allura/lib/custom_middleware.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7ad8965e/Allura/allura/lib/custom_middleware.py ---------------------------------------------------------------------- diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py index 2a07e58..b6797e3 100644 --- a/Allura/allura/lib/custom_middleware.py +++ b/Allura/allura/lib/custom_middleware.py @@ -217,14 +217,19 @@ class AlluraTimerMiddleware(TimerMiddleware): Timer('markdown', markdown.Markdown, 'convert'), Timer('ming', ming.odm.odmsession.ODMCursor, 'next', # FIXME: this may captures timings ok, but is misleading for counts debug_each_call=False), - Timer('ming', ming.odm.odmsession.ODMSession, 'flush', 'find'), + Timer('ming', ming.odm.odmsession.ODMSession, 'flush', + 'find', 'find_and_modify', 'remove', 'update', 'update_if_not_modified', + 'aggregate', 'group', 'map_reduce', 'inline_map_reduce', 'distinct', + ), Timer('ming', ming.schema.Document, 'validate', debug_each_call=False), Timer('ming', ming.schema.FancySchemaItem, '_validate_required', '_validate_fast_missing', '_validate_optional', debug_each_call=False), Timer('mongo', pymongo.collection.Collection, 'count', 'find', - 'find_one'), + 'find_one', 'aggregate', 'group', 'map_reduce', + 'inline_map_reduce', 'find_and_modify', + 'insert', 'save', 'update', 'remove', 'drop'), Timer('mongo', pymongo.cursor.Cursor, 'count', 'distinct', '_refresh'), # urlopen and socket io may or may not overlap partially