public class PerformanceManager
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.ThreadLocal<SessionProvider> |
sessionIDInforThreadLocal |
构造器和说明 |
---|
PerformanceManager() |
限定符和类型 | 方法和说明 |
---|---|
static void |
clearThreadLocal() |
static IPerformanceInfoFactory |
getInfoFactory() |
static BaseMemoryEstimation |
getMemoryEstimation() |
static PerformanceRecorder |
getRecorder()
获取记录对象
|
static PerformanceRecorderManager |
getRecorderManager()
获取记录管理器
|
static IRuntimeMonitor |
getRuntimeMonitor() |
static SessionProvider |
getThreadSession() |
static boolean |
isUsePerformanceRecorder() |
static void |
lock() |
static void |
registerExtendPerformanceManager(ExtendPerformanceManager extendPerformanceManager) |
static void |
registerInfoFactory(IPerformanceInfoFactory infoFactory) |
static void |
registerMemoryEstimation(BaseMemoryEstimation memoryEstimation) |
static void |
registerRecorderManager(PerformanceRecorderManager recorderManager) |
static void |
registerRuntimeMonitor(IRuntimeMonitor runtimeMonitor) |
static void |
releaseSessionInfo()
释放当前线程里的sessionidinfor
|
static void |
reset()
重置性能监控
|
static boolean |
tryLock(long time)
尝试获取性能锁
|
static void |
unlock() |
public static java.lang.ThreadLocal<SessionProvider> sessionIDInforThreadLocal
public static BaseMemoryEstimation getMemoryEstimation()
public static void registerMemoryEstimation(BaseMemoryEstimation memoryEstimation)
public static IPerformanceInfoFactory getInfoFactory()
public static void registerInfoFactory(IPerformanceInfoFactory infoFactory)
public static IRuntimeMonitor getRuntimeMonitor()
public static void registerRuntimeMonitor(IRuntimeMonitor runtimeMonitor)
public static PerformanceRecorder getRecorder()
public static boolean isUsePerformanceRecorder()
public static PerformanceRecorderManager getRecorderManager()
public static void reset()
public static void clearThreadLocal()
public static void registerRecorderManager(PerformanceRecorderManager recorderManager)
public static void registerExtendPerformanceManager(ExtendPerformanceManager extendPerformanceManager)
public static void releaseSessionInfo()
public static SessionProvider getThreadSession()
public static void lock()
public static boolean tryLock(long time) throws java.lang.InterruptedException
time
- 尝试时间 毫秒java.lang.InterruptedException
public static void unlock()