List of usage examples for io.netty.buffer ByteBufAllocatorMetric usedDirectMemory
long usedDirectMemory();
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()); }