Permalink
Browse files

snippet inkocation perf measure

  • Loading branch information...
1 parent 379670c commit 918842e0fd0a00bce7a29afa3494467ad2375ed4 @lkuczera lkuczera committed Apr 17, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −1 build.sbt
  2. +5 −1 web/webkit/src/main/scala/net/liftweb/http/S.scala
View
@@ -2,7 +2,7 @@ import Dependencies._
organization in ThisBuild := "net.liftweb"
-version in ThisBuild := "2.5-SNAPSHOT"
+version in ThisBuild := "2.5-sg-SNAPSHOT"
homepage in ThisBuild := Some(url("http://www.liftweb.net"))
@@ -2276,7 +2276,11 @@ for {
val old = _currentSnippet.is
try {
_currentSnippet.set(Full(name))
- f
+ val time = System.currentTimeMillis
+ val ret = f
+ val took = System.currentTimeMillis - time
+ if(took > 50 && name != "surround") logger.trace(" %s took:%sms".format(name, took))
+ ret
} finally {
_currentSnippet.set(old)
}

0 comments on commit 918842e

Please sign in to comment.