diff --git a/analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/fragment/GCModelConverter.java b/analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/fragment/GCModelConverter.java index 79f21229..823ade80 100644 --- a/analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/fragment/GCModelConverter.java +++ b/analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/fragment/GCModelConverter.java @@ -76,7 +76,7 @@ private void addMetricDuration() { if (gcEvent.getDuration() == Constant.UNKNOWN_DOUBLE) { return; } - result.add(new Metric(timestamp, buildLabel(), "GC_COST_TIME", gcEvent.getDuration())); + result.add(new Metric(timestamp, buildLabel("type", gcEvent.getEventType().getName()), "GC_COST_TIME", gcEvent.getDuration())); } private void addMetricPause() {