com.atlassian.bamboo.util
Class BambooProfilingUtils

java.lang.Object
  extended by com.atlassian.bamboo.util.BambooProfilingUtils

public class BambooProfilingUtils
extends java.lang.Object


Constructor Summary
BambooProfilingUtils()
           
 
Method Summary
static
<T> T
withUtilTimerStack(java.lang.String message, java.util.concurrent.Callable<T> callable)
          Wrap a piece of logic with calls to @push and UtilTimerStack@pop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooProfilingUtils

public BambooProfilingUtils()
Method Detail

withUtilTimerStack

public static <T> T withUtilTimerStack(@NotNull
                                       java.lang.String message,
                                       java.util.concurrent.Callable<T> callable)
                            throws java.lang.Exception
Wrap a piece of logic with calls to @push and UtilTimerStack@pop

Type Parameters:
T - Type of value returned by callable
Parameters:
message - Message to be put to UtilTimerStack
callable - Code to be executed
Returns:
Value returned by callable
Throws:
java.lang.Exception


Copyright © 2011 Atlassian. All Rights Reserved.