|
|
|
@ -58,6 +58,7 @@ public class SwitchForSwingChecker implements XMLReadable, XMLWriter {
|
|
|
|
|
* 简单记录事件执行时间的开关 |
|
|
|
|
*/ |
|
|
|
|
private static boolean easyChecker = false; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 一个标识位用于区分耗时任务时长检测(简单检测)和timer检测 |
|
|
|
|
*/ |
|
|
|
@ -331,7 +332,7 @@ public class SwitchForSwingChecker implements XMLReadable, XMLWriter {
|
|
|
|
|
MAIN(NORMAL_MAIN_CLASS_NAME) { |
|
|
|
|
@Override |
|
|
|
|
void initEventQueue() { |
|
|
|
|
if (StringUtils.equals("true", System.getProperty(CARTON_DEVELOPER_JVM_PARAM))) { |
|
|
|
|
if (StringUtils.equals(TURE_JVM, System.getProperty(CARTON_DEVELOPER_JVM_PARAM))) { |
|
|
|
|
EventDispatchDeveloperMode.INSTANCE.initMonitoring(); |
|
|
|
|
} else { |
|
|
|
|
EventDispatchThreadHangMonitor.initMonitoring(); |
|
|
|
@ -353,7 +354,7 @@ public class SwitchForSwingChecker implements XMLReadable, XMLWriter {
|
|
|
|
|
MainClassType(String classPath) { |
|
|
|
|
this.classPath = classPath; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static final String TURE_JVM = "true"; |
|
|
|
|
String classPath; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|