com.alibaba.druid.support.profile
Class Profiler

java.lang.Object
  extended by com.alibaba.druid.support.profile.Profiler

public class Profiler
extends Object


Field Summary
static String PROFILE_TYPE_SPRING
           
static String PROFILE_TYPE_SQL
           
static String PROFILE_TYPE_WEB
           
 
Constructor Summary
Profiler()
           
 
Method Summary
static ProfileEntry current()
           
static void enter(String name, String type)
           
static Map<ProfileEntryKey,ProfileEntryReqStat> getStatsMap()
           
static void initLocal()
           
static boolean isEnable()
           
static void release(long nanos)
           
static void removeLocal()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROFILE_TYPE_WEB

public static final String PROFILE_TYPE_WEB
See Also:
Constant Field Values

PROFILE_TYPE_SPRING

public static final String PROFILE_TYPE_SPRING
See Also:
Constant Field Values

PROFILE_TYPE_SQL

public static final String PROFILE_TYPE_SQL
See Also:
Constant Field Values
Constructor Detail

Profiler

public Profiler()
Method Detail

isEnable

public static boolean isEnable()

enter

public static void enter(String name,
                         String type)

current

public static ProfileEntry current()

release

public static void release(long nanos)

getStatsMap

public static Map<ProfileEntryKey,ProfileEntryReqStat> getStatsMap()

initLocal

public static void initLocal()

removeLocal

public static void removeLocal()


Copyright © 2012 Alibaba Group. All Rights Reserved.