mil.dod.th.junit4.test.runner/src/mil/dod/th/ose/junit4xmltestrunner/XMLTestRunner.java
public static void logMemoryUsage()
    {
        for (MemoryPoolMXBean pool : ManagementFactory.getMemoryPoolMXBeans())
        {
            Logging.log(LogService.LOG_INFO, "%s (%s): %s", pool.getName(), pool.getType(), pool.getPeakUsage());
        }
        
        Logging.log(LogService.LOG_INFO, "heap: %s", ManagementFactory.getMemoryMXBean().getHeapMemoryUsage());
        Logging.log(LogService.LOG_INFO, "non-heap: %s", 
                ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage());
    }
/**
     * Log memory usage to the OSGi Log Service.
     */
Log memory usage to the OSGi Log Service.
Log memory usage to the OSGi Log Service .
public static void logMemoryUsage()
    {
        for (MemoryPoolMXBean pool : ManagementFactory.getMemoryPoolMXBeans())
        {
            Logging.log(LogService.LOG_INFO, "%s (%s): %s", pool.getName(), pool.getType(), pool.getPeakUsage());
        }
        Logging.log(LogService.LOG_INFO, "heap: %s", ManagementFactory.getMemoryMXBean().getHeapMemoryUsage());
        Logging.log(LogService.LOG_INFO, "non-heap: %s", 
                ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage());
    }
public static void logMemoryUsage ( ) { for ( MemoryPoolMXBean pool : ManagementFactory . getMemoryPoolMXBeans ( ) ) { Logging . log ( LogService . LOG_INFO , "%s (%s): %s" , pool . getName ( ) , pool . getType ( ) , pool . getPeakUsage ( ) ) ; } Logging . log ( LogService . LOG_INFO , "heap: %s" , ManagementFactory . getMemoryMXBean ( ) . getHeapMemoryUsage ( ) ) ; Logging . log ( LogService . LOG_INFO , "non-heap: %s" , ManagementFactory . getMemoryMXBean ( ) . getNonHeapMemoryUsage ( ) ) ; }
Log memory usage to the OSGi Log Service.
Log memory usage to the OSGi Log Service .