title: How to profile methods in Scala?
body: <p>What is a standard way of profiling Scala method calls?</p>
  
  <p>What I need are hooks around a method, using which I can use to start and stop Timers.</p>
  
  <p>In Java I use aspect programming, aspectJ, to define the methods to be profiled and inject bytecode to achieve the same.</p>
  
  <p>Is there a more natural way in Scala, where I can define a bunch of functions to be called before and after a function without losing any static typing in the process?</p>