You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/02/04 22:27:05 UTC

[10/16] git commit: [#5738] Add instrumentation to Commit._diffs_copied

[#5738] Add instrumentation to Commit._diffs_copied

Signed-off-by: Cory Johns <jo...@geek.net>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/7712b0cf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/7712b0cf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/7712b0cf

Branch: refs/heads/cj/5705
Commit: 7712b0cf458459e63092e30dc3597c6b6612e4c6
Parents: 0fb0b2a
Author: Cory Johns <jo...@geek.net>
Authored: Mon Feb 4 17:40:35 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Mon Feb 4 17:40:35 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/custom_middleware.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7712b0cf/Allura/allura/lib/custom_middleware.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py
index 501074b..10762b6 100644
--- a/Allura/allura/lib/custom_middleware.py
+++ b/Allura/allura/lib/custom_middleware.py
@@ -13,6 +13,7 @@ from webob import exc, Request
 import pysolr
 
 from allura.lib import helpers as h
+import allura.model.repo
 
 log = logging.getLogger(__name__)
 
@@ -187,6 +188,9 @@ class AlluraTimerMiddleware(TimerMiddleware):
             Timer('template', genshi.template.Template, '_prepare', '_parse',
                 'generate'),
             Timer('urlopen', urllib2, 'urlopen'),
+            Timer('_diffs_copied', allura.model.repo.Commit, '_diffs_copied'),
+            Timer('sm_ratio.{method_name}', allura.model.repo.SequenceMatcher, '*'),
+            Timer('unified_diff', allura.model.repo, 'unified_diff'),
         ] + [Timer('sidebar', ep.load(), 'sidebar_menu') for ep in tool_entry_points]
 
     def before_logging(self, stat_record):