com.atlassian.bamboo.util
Class BambooProfilingUtils

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

public class BambooProfilingUtils
extends java.lang.Object


Method Summary
static java.lang.String getTimes(java.util.Map<java.lang.Object,java.lang.Long> profiledCalls, int minimumDurationMs)
           
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
 

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

getTimes

public static java.lang.String getTimes(@NotNull
                                        java.util.Map<java.lang.Object,java.lang.Long> profiledCalls,
                                        int minimumDurationMs)


Copyright © 2012 Atlassian. All Rights Reserved.