use of org.apache.skywalking.apm.collector.storage.ui.server.GCTrend in project incubator-skywalking by apache.
the class ServerService method getGCTrend.
public GCTrend getGCTrend(int instanceId, Step step, long startTimeBucket, long endTimeBucket) throws ParseException {
GCTrend gcTrend = new GCTrend();
List<DurationPoint> durationPoints = DurationUtils.INSTANCE.getDurationPoints(step, startTimeBucket, endTimeBucket);
List<Integer> youngGCTrend = gcMetricUIDAO.getYoungGCTrend(instanceId, step, durationPoints);
gcTrend.setYoungGC(youngGCTrend);
List<Integer> oldGCTrend = gcMetricUIDAO.getOldGCTrend(instanceId, step, durationPoints);
gcTrend.setOldGC(oldGCTrend);
return gcTrend;
}
Aggregations