MCPcopy Create free account
hub / github.com/SeanDragon/protools / getJvmGcCount

Method getJvmGcCount

common/src/main/java/pro/tools/system/ToolOS.java:203–209  ·  view source on GitHub ↗

获取JVM GC次数 @return

()

Source from the content-addressed store, hash-verified

201 * @return
202 */
203 public static long getJvmGcCount() {
204 long count = 0;
205 for (final GarbageCollectorMXBean garbageCollectorMXBean : LIST) {
206 count += garbageCollectorMXBean.getCollectionCount();
207 }
208 return count;
209 }
210
211 /**
212 * 系统线程列表

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected