You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/02/11 20:55:57 UTC

git commit: [#5764] Add more SCM instrumentation

Updated Branches:
  refs/heads/tv/5764 [created] 7ecfebbc7


[#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/7ecfebbc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/7ecfebbc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/7ecfebbc

Branch: refs/heads/tv/5764
Commit: 7ecfebbc79052d32eb621dce01dfce66fc2b436f
Parents: de0f3bd
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Mon Feb 11 19:55:41 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Mon Feb 11 19:55:41 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/7ecfebbc/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',