Search in sources :

Example 1 with DetailedMemoryMetricSnapshot

use of com.navercorp.pinpoint.profiler.monitor.metric.memory.DetailedMemoryMetricSnapshot in project pinpoint by naver.

the class DetailedJvmGcMetricCollector method collect.

@Override
public JvmGcMetricSnapshot collect() {
    final JvmGcMetricSnapshot jvmGcMetricSnapshot = jvmGcMetricCollector.collect();
    final DetailedMemoryMetricSnapshot detailedMemoryMetricSnapshot = detailedMemoryMetric.getSnapshot();
    final DetailedGarbageCollectorMetricSnapshot detailedGarbageCollectorMetricSnapshot = detailedGarbageCollectorMetric.getSnapshot();
    final JvmGcDetailedMetricSnapshot jvmGcDetailedMetricSnapshot = new JvmGcDetailedMetricSnapshot();
    jvmGcDetailedMetricSnapshot.setJvmPoolNewGenUsed(detailedMemoryMetricSnapshot.getNewGenUsage());
    jvmGcDetailedMetricSnapshot.setJvmPoolOldGenUsed(detailedMemoryMetricSnapshot.getOldGenUsage());
    jvmGcDetailedMetricSnapshot.setJvmPoolSurvivorSpaceUsed(detailedMemoryMetricSnapshot.getSurvivorSpaceUsage());
    jvmGcDetailedMetricSnapshot.setJvmPoolCodeCacheUsed(detailedMemoryMetricSnapshot.getCodeCacheUsage());
    jvmGcDetailedMetricSnapshot.setJvmPoolPermGenUsed(detailedMemoryMetricSnapshot.getPermGenUsage());
    jvmGcDetailedMetricSnapshot.setJvmPoolMetaspaceUsed(detailedMemoryMetricSnapshot.getMetaspaceUsage());
    jvmGcDetailedMetricSnapshot.setJvmGcNewCount(detailedGarbageCollectorMetricSnapshot.getGcNewCount());
    jvmGcDetailedMetricSnapshot.setJvmGcNewTime(detailedGarbageCollectorMetricSnapshot.getGcNewTime());
    jvmGcMetricSnapshot.setJvmGcDetailed(jvmGcDetailedMetricSnapshot);
    return jvmGcMetricSnapshot;
}
Also used : DetailedGarbageCollectorMetricSnapshot(com.navercorp.pinpoint.profiler.monitor.metric.gc.DetailedGarbageCollectorMetricSnapshot) JvmGcDetailedMetricSnapshot(com.navercorp.pinpoint.profiler.monitor.metric.JvmGcDetailedMetricSnapshot) JvmGcMetricSnapshot(com.navercorp.pinpoint.profiler.monitor.metric.JvmGcMetricSnapshot) DetailedMemoryMetricSnapshot(com.navercorp.pinpoint.profiler.monitor.metric.memory.DetailedMemoryMetricSnapshot)

Aggregations

JvmGcDetailedMetricSnapshot (com.navercorp.pinpoint.profiler.monitor.metric.JvmGcDetailedMetricSnapshot)1 JvmGcMetricSnapshot (com.navercorp.pinpoint.profiler.monitor.metric.JvmGcMetricSnapshot)1 DetailedGarbageCollectorMetricSnapshot (com.navercorp.pinpoint.profiler.monitor.metric.gc.DetailedGarbageCollectorMetricSnapshot)1 DetailedMemoryMetricSnapshot (com.navercorp.pinpoint.profiler.monitor.metric.memory.DetailedMemoryMetricSnapshot)1