Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import com.microsoft.gctoolkit.event.GarbageCollectionTypes;
import com.microsoft.gctoolkit.time.DateTimeStamp;

import java.util.List;

public class FullZGCCycle extends GCEvent {
private ZGCCycle delegate;

Expand Down Expand Up @@ -250,6 +252,34 @@ public double getMarkFollowDuration() {
public ZGCMemoryPoolSummary getRelocateEnd() {
return delegate.getRelocateEnd();
}

public ZGCHeapCapacitySummary getHeapCapacitySummary() {
return delegate.getHeapCapacitySummary();
}

public ZGCNMethodSummary getNMethodSummary() {
return delegate.getNMethodSummary();
}

public ZGCPageSummary getSmallPageSummary() {
return delegate.getSmallPageSummary();
}

public ZGCPageSummary getMediumPageSummary() {
return delegate.getMediumPageSummary();
}

public ZGCPageSummary getLargePageSummary() {
return delegate.getLargePageSummary();
}

public long getForwardingUsage() {
return delegate.getForwardingUsage();
}

public List<ZGCPageAgeSummary> getAgeTableSummary() {
return delegate.getAgeTableSummary();
}
}

// Concurrent Mark duration
Expand Down
66 changes: 66 additions & 0 deletions api/src/main/java/com/microsoft/gctoolkit/event/zgc/ZGCCycle.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import com.microsoft.gctoolkit.time.DateTimeStamp;

import java.util.List;

public class ZGCCycle {
private DateTimeStamp markRootsStart;
private double markRootsDuration;
Expand Down Expand Up @@ -57,6 +59,14 @@ public class ZGCCycle {
private ZGCReclaimSummary reclaimSummary;
private ZGCMemorySummary memorySummary;
private ZGCMetaspaceSummary metaspaceSummary;
private ZGCHeapCapacitySummary heapCapacitySummary;
private ZGCNMethodSummary nMethodSummary;

private ZGCPageSummary smallPageSummary;
private ZGCPageSummary mediumPageSummary;
private ZGCPageSummary largePageSummary;
private long forwardingUsage;
private List<ZGCPageAgeSummary> ageTableSummary;

public ZGCReferenceSummary getSoftRefSummary() {
return softRefSummary;
Expand Down Expand Up @@ -493,4 +503,60 @@ public void setFinalRefSummary(ZGCReferenceSummary finalRefSummary) {
public void setPhantomRefSummary(ZGCReferenceSummary phantomRefSummary) {
this.phantomRefSummary = phantomRefSummary;
}

public void setHeapCapacitySummary(ZGCHeapCapacitySummary heapCapacitySummary) {
this.heapCapacitySummary = heapCapacitySummary;
}

public ZGCHeapCapacitySummary getHeapCapacitySummary() {
return heapCapacitySummary;
}

public void setNMethodSummary(ZGCNMethodSummary nMethodSummary) {
this.nMethodSummary = nMethodSummary;
}

public ZGCNMethodSummary getNMethodSummary() {
return nMethodSummary;
}

public void setSmallPageSummary(ZGCPageSummary smallPageSummary) {
this.smallPageSummary = smallPageSummary;
}

public void setMediumPageSummary(ZGCPageSummary mediumPageSummary) {
this.mediumPageSummary = mediumPageSummary;
}

public void setLargePageSummary(ZGCPageSummary largePageSummary) {
this.largePageSummary = largePageSummary;
}

public ZGCPageSummary getSmallPageSummary() {
return smallPageSummary;
}

public ZGCPageSummary getMediumPageSummary() {
return mediumPageSummary;
}

public ZGCPageSummary getLargePageSummary() {
return largePageSummary;
}

public void setForwardingUsage(long forwardingUsage) {
this.forwardingUsage = forwardingUsage;
}

public long getForwardingUsage() {
return forwardingUsage;
}

public void setAgeTableSummary(List<ZGCPageAgeSummary> ageTableSummary) {
this.ageTableSummary = ageTableSummary;
}

public List<ZGCPageAgeSummary> getAgeTableSummary() {
return ageTableSummary;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.microsoft.gctoolkit.event.zgc;

public class ZGCHeapCapacitySummary {
private final long minCapacity;
private final long maxCapacity;
private final long softMaxCapacity;

public ZGCHeapCapacitySummary(long minCapacity, long maxCapacity, long softMaxCapacity) {
this.minCapacity = minCapacity;
this.maxCapacity = maxCapacity;
this.softMaxCapacity = softMaxCapacity;
}

public long getMinCapacity() {
return minCapacity;
}

public long getMaxCapacity() {
return maxCapacity;
}

public long getSoftMaxCapacity() {
return softMaxCapacity;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.microsoft.gctoolkit.event.zgc;

public class ZGCNMethodSummary {
private final long registered;
private final long unregistered;

public ZGCNMethodSummary(long registered, long unregistered) {
this.registered = registered;
this.unregistered = unregistered;
}

public long getUnregistered() {
return unregistered;
}

public long getRegistered() {
return registered;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
package com.microsoft.gctoolkit.event.zgc;

public class ZGCPageAgeSummary {
private final String name;
private final long live;
private final int livePct;
private final long garbage;
private final int garbagePct;
private final long smallPageCandidates;
private final long smallPageSelected;
private final long mediumPageCandidates;
private final long mediumPageSelected;
private final long largePageCandidates;
private final long largePageSelected;

public ZGCPageAgeSummary(
String name,
long live,
int livePct,
long garbage,
int garbagePct,
long smallPageCandidates,
long smallPageSelected,
long mediumPageCandidates,
long mediumPageSelected,
long largePageCandidates,
long largePageSelected) {
this.name = name;
this.live = live;
this.livePct = livePct;
this.garbage = garbage;
this.garbagePct = garbagePct;
this.smallPageCandidates = smallPageCandidates;
this.smallPageSelected = smallPageSelected;
this.mediumPageCandidates = mediumPageCandidates;
this.mediumPageSelected = mediumPageSelected;
this.largePageCandidates = largePageCandidates;
this.largePageSelected = largePageSelected;
}

public long getGarbage() {
return garbage;
}

public int getGarbagePct() {
return garbagePct;
}

public long getLargePageCandidates() {
return largePageCandidates;
}

public long getLargePageSelected() {
return largePageSelected;
}

public long getLive() {
return live;
}

public int getLivePct() {
return livePct;
}

public long getMediumPageCandidates() {
return mediumPageCandidates;
}

public long getMediumPageSelected() {
return mediumPageSelected;
}

public String getName() {
return name;
}

public long getSmallPageCandidates() {
return smallPageCandidates;
}

public long getSmallPageSelected() {
return smallPageSelected;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package com.microsoft.gctoolkit.event.zgc;

public class ZGCPageSummary {
private final long candidates;
private final long selected;
private final long inPlace;
private final long size;
private final long empty;
private final long relocated;

public ZGCPageSummary(long candidates, long selected, long inPlace, long size, long empty, long relocated) {
this.candidates = candidates;
this.selected = selected;
this.inPlace = inPlace;
this.size = size;
this.empty = empty;
this.relocated = relocated;
}

public long getCandidates() {
return candidates;
}

public long getEmpty() {
return empty;
}

public long getInPlace() {
return inPlace;
}

public long getRelocated() {
return relocated;
}

public long getSelected() {
return selected;
}

public long getSize() {
return size;
}
}
Loading