Search in sources :

Example 1 with GCTrend

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;
}
Also used : GCTrend(org.apache.skywalking.apm.collector.storage.ui.server.GCTrend) DurationPoint(org.apache.skywalking.apm.collector.storage.utils.DurationPoint)

Aggregations

GCTrend (org.apache.skywalking.apm.collector.storage.ui.server.GCTrend)1 DurationPoint (org.apache.skywalking.apm.collector.storage.utils.DurationPoint)1