Class ThreadMonitor


  • public class ThreadMonitor
    extends Object
    Keeps track of a list of threads and prints statistics of CPU usage of the threads. It also prints statistics of memory usage and garbage collections
    • Constructor Detail

      • ThreadMonitor

        public ThreadMonitor()
    • Method Detail

      • start

        public void start()
      • registerThread

        public void registerThread​(Thread thread)
      • unregisterThread

        public void unregisterThread​(Thread thread)
      • printStatistics

        public void printStatistics()
      • printStatistics

        public void printStatistics​(String heading)