com.wordnik.resource.util.Profiler.scala Maven / Gradle / Ivy
The newest version!
package com.wordnik.resource.util
import com.wordnik.util.perf.Profile
trait Profiler {
def profile[T](f: => T): T = {
val name: String = getClass.getName + "." + Thread.currentThread.getStackTrace()(3).getMethodName
Profile(name, f)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy