- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GarbageCollectorMXBean (0.31 sec)
-
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionCheck.java
private final GarbageCollectorMXBean garbageCollectorMXBean; private final String heapMemoryPool; private final SlidingWindow<GarbageCollectionEvent> heapEvents; private final String nonHeapMemoryPool; private final SlidingWindow<GarbageCollectionEvent> nonHeapEvents;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 3.4K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionInfo.java
import java.lang.management.GarbageCollectorMXBean; import java.lang.management.ManagementFactory; public class GarbageCollectionInfo { /** * Approx. time spent in gc. See {@link GarbageCollectorMXBean} */ public long getCollectionTime() { long garbageCollectionTime = 0; for (GarbageCollectorMXBean gc : ManagementFactory.getGarbageCollectorMXBeans()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/gc/DefaultGarbageCollectionMonitor.java
pollForValues(); } } private void pollForValues() { GarbageCollectorMXBean garbageCollectorMXBean = CollectionUtils.findFirst(ManagementFactory.getGarbageCollectorMXBeans(), new Spec<GarbageCollectorMXBean>() { @Override public boolean isSatisfiedBy(GarbageCollectorMXBean element) { return element.getName().equals(gcStrategy.getGarbageCollectorName()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:38 UTC 2024 - 3.4K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionCheckTest.groovy
import java.lang.management.GarbageCollectorMXBean import java.lang.management.ManagementFactory import java.lang.management.MemoryType class GarbageCollectionCheckTest extends Specification { def "throwables are not propagated out of the run method"() { given: def check = new GarbageCollectionCheck( Mock(Clock), Mock(GarbageCollectorMXBean),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 1.6K bytes - Viewed (0)