List of usage examples for io.netty.buffer ByteBufAllocatorMetric usedHeapMemory
long usedHeapMemory();
From source file:ratpack.dropwizard.metrics.internal.UnpooledByteBufAllocatorMetricSet.java
License:Apache License
private void initMetrics() { final ByteBufAllocatorMetric metric = unpooledByteBufAllocator.metric(); metrics.put("usedDirectMemory", (Gauge<Long>) () -> metric.usedDirectMemory()); metrics.put("usedHeapMemory", (Gauge<Long>) () -> metric.usedHeapMemory()); }