allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#4832] Added differentiation of scm timings by method
Date Wed, 30 Jan 2013 19:02:17 GMT
Updated Branches:
  refs/heads/master 1db5fec14 -> c1e81ff02


[#4832] Added differentiation of scm timings by method

Signed-off-by: Cory Johns <johnsca@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/c1e81ff0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/c1e81ff0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/c1e81ff0

Branch: refs/heads/master
Commit: c1e81ff023d2bcfd10594ba9b8d8110aef587a44
Parents: 1db5fec
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Jan 30 18:59:47 2013 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Wed Jan 30 18:59:47 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c1e81ff0/Allura/allura/lib/custom_middleware.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py
index 232ce0e..501074b 100644
--- a/Allura/allura/lib/custom_middleware.py
+++ b/Allura/allura/lib/custom_middleware.py
@@ -198,14 +198,14 @@ class AlluraTimerMiddleware(TimerMiddleware):
         timers = []
         with pass_on_exc(ImportError):
             import forgesvn
-            timers.append(Timer('svn', forgesvn.model.svn.SVNLibWrapper, 'checkout', 'add',
+            timers.append(Timer('svn_lib.{method_name}', forgesvn.model.svn.SVNLibWrapper,
'checkout', 'add',
                         'checkin', 'info2', 'log', 'cat', 'list'))
         with pass_on_exc(ImportError):
             import git
-            timers.append(Timer('git', git.Repo, 'rev_parse', 'iter_commits', 'commit'))
+            timers.append(Timer('git_lib.{method_name}', git.Repo, 'rev_parse', 'iter_commits',
'commit'))
         with pass_on_exc(ImportError):
             import mercurial
-            timers.append(Timer('hg', mercurial.hg.localrepo.localrepository, 'heads',
+            timers.append(Timer('hg_lib.{method_name}', mercurial.hg.localrepo.localrepository,
'heads',
                 'branchtags', 'tags'))
         return timers
 
@@ -213,13 +213,13 @@ class AlluraTimerMiddleware(TimerMiddleware):
         timers= []
         with pass_on_exc(ImportError):
             from forgegit.model.git_repo import GitImplementation
-            timers.append(Timer('git_impl', GitImplementation, '*'))
+            timers.append(Timer('git_tool.{method_name}', GitImplementation, '*'))
         with pass_on_exc(ImportError):
             from forgesvn.model.svn import SVNImplementation
-            timers.append(Timer('svn_impl', SVNImplementation, '*'))
+            timers.append(Timer('svn_tool.{method_name}', SVNImplementation, '*'))
         with pass_on_exc(ImportError):
             from forgehg.model.hg import HgImplementation
-            timers.append(Timer('hg_impl', HgImplementation, '*'))
+            timers.append(Timer('hg_tool.{method_name}', HgImplementation, '*'))
         return timers
 
 


Mime
View raw message