use of com.navercorp.pinpoint.profiler.monitor.metric.memory.MemoryMetricSnapshot in project pinpoint by naver.
the class BasicJvmGcMetricCollector method collect.
@Override
public JvmGcMetricSnapshot collect() {
final JvmGcType jvmGcType = garbageCollectorMetric.getGcType();
final MemoryMetricSnapshot memoryMetricSnapshot = memoryMetric.getSnapshot();
final GarbageCollectorMetricSnapshot garbageCollectorMetricSnapshot = garbageCollectorMetric.getSnapshot();
final JvmGcMetricSnapshot jvmGcMetricSnapshot = new JvmGcMetricSnapshot();
jvmGcMetricSnapshot.setJvmMemoryHeapMax(memoryMetricSnapshot.getHeapMax());
jvmGcMetricSnapshot.setJvmMemoryHeapUsed(memoryMetricSnapshot.getHeapUsed());
jvmGcMetricSnapshot.setJvmMemoryNonHeapMax(memoryMetricSnapshot.getNonHeapMax());
jvmGcMetricSnapshot.setJvmMemoryNonHeapUsed(memoryMetricSnapshot.getNonHeapUsed());
jvmGcMetricSnapshot.setJvmGcOldCount(garbageCollectorMetricSnapshot.getGcOldCount());
jvmGcMetricSnapshot.setJvmGcOldTime(garbageCollectorMetricSnapshot.getGcOldTime());
jvmGcMetricSnapshot.setType(jvmGcType);
return jvmGcMetricSnapshot;
}
Aggregations