Lines Matching defs:tm
38 private static ThreadMXBean tm = ManagementFactory.getThreadMXBean();
42 boolean value = tm.isThreadContentionMonitoringEnabled();
53 if (!tm.isThreadContentionMonitoringSupported()) return;
59 tm.setThreadContentionMonitoringEnabled(true);
63 tm.setThreadContentionMonitoringEnabled(true);
66 tm.setThreadContentionMonitoringEnabled(true);
69 tm.setThreadContentionMonitoringEnabled(false);
72 tm.setThreadContentionMonitoringEnabled(false);
75 tm.setThreadContentionMonitoringEnabled(true);
81 boolean value = tm.isThreadCpuTimeEnabled();
91 if (!tm.isThreadCpuTimeSupported()) return;
94 if (!tm.isThreadCpuTimeEnabled()) {
95 tm.setThreadCpuTimeEnabled(true);
99 tm.setThreadCpuTimeEnabled(false);
102 tm.setThreadCpuTimeEnabled(true);
105 tm.setThreadCpuTimeEnabled(true);
108 tm.setThreadCpuTimeEnabled(true);
111 tm.setThreadCpuTimeEnabled(false);
114 tm.setThreadCpuTimeEnabled(false);
117 tm.setThreadCpuTimeEnabled(true);
127 if (tm.isThreadContentionMonitoringSupported()) {
128 tm.setThreadContentionMonitoringEnabled(false);
130 if (tm.isThreadCpuTimeSupported()) {
131 tm.setThreadCpuTimeEnabled(false);