code: private static void addNonHeapMetrics(Collection<Metric<?>> result) {
          MemoryUsage memoryUsage = ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage();
          result.add(newMemoryMetric("nonheap.committed", memoryUsage.getCommitted()));
          result.add(newMemoryMetric("nonheap.init", memoryUsage.getInit()));
          result.add(newMemoryMetric("nonheap.used", memoryUsage.getUsed()));
          result.add(newMemoryMetric("nonheap", memoryUsage.getMax()));
      }
docs: Add JVM non-heap metrics.
  
  @param result the result