allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#5764] Add more SCM instrumentation
Date Mon, 11 Feb 2013 20:12:43 GMT
Updated Branches:
  refs/heads/master 1c6e48200 -> 1150a67e6


[#5764] Add more SCM instrumentation


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

Branch: refs/heads/master
Commit: 1150a67e6565d65cb91fcd692e6fd5930b58df10
Parents: 1c6e482
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Mon Feb 11 19:55:41 2013 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Mon Feb 11 20:12:24 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/1150a67e/Allura/allura/lib/custom_middleware.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py
index d302668..ef3beb9 100644
--- a/Allura/allura/lib/custom_middleware.py
+++ b/Allura/allura/lib/custom_middleware.py
@@ -180,6 +180,10 @@ class AlluraTimerMiddleware(TimerMiddleware):
                 'sort', 'where'),
             # urlopen and socket io may or may not overlap partially
             Timer('render', genshi.Stream, 'render'),
+            Timer('repo.Blob.{method_name}', allura.model.repo.Blob, '*'),
+            Timer('repo.Commit.{method_name}', allura.model.repo.Commit, '*'),
+            Timer('repo.LastCommit.{method_name}', allura.model.repo.LastCommit, '*'),
+            Timer('repo.Tree.{method_name}', allura.model.repo.Tree, '*'),
             Timer('socket_read', socket._fileobject, 'read', 'readline',
                 'readlines', debug_each_call=False),
             Timer('socket_write', socket._fileobject, 'write', 'writelines',


Mime
View raw message