Class UIMetrics


  • public class UIMetrics
    extends java.lang.Object
    Tools to manage UI computation times and memory usage
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  UIMetrics.Heap
      UI Heap metrics
      static class  UIMetrics.Item
      Metrics of top level UI service
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int QUANTUM
      Time precision in ms
    • Constructor Summary

      Constructors 
      Constructor Description
      UIMetrics()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<UIMetrics.Item> getTop()
      Get top services
      static java.lang.String heapHistToJSON​(java.lang.String session)  
      static java.lang.String heapListToJSON​(boolean reset)  
      static void resetHeap()
      Clear heap metrics
      static void resetPerf()
      Clear top rendering metrics
      static void statistics​(Grant g, java.lang.String json)
      Store UI metrics
      static java.lang.String timesToJSON​(java.lang.String service, java.lang.String target)  
      static java.lang.String topToJSON​(boolean reset, char filter)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UIMetrics

        public UIMetrics()
    • Method Detail

      • getTop

        public static java.util.List<UIMetrics.Item> getTop()
        Get top services
        Returns:
        Top services
      • resetPerf

        public static void resetPerf()
        Clear top rendering metrics
      • resetHeap

        public static void resetHeap()
        Clear heap metrics
      • topToJSON

        public static java.lang.String topToJSON​(boolean reset,
                                                 char filter)
      • timesToJSON

        public static java.lang.String timesToJSON​(java.lang.String service,
                                                   java.lang.String target)
      • statistics

        public static void statistics​(Grant g,
                                      java.lang.String json)
        Store UI metrics
      • heapListToJSON

        public static java.lang.String heapListToJSON​(boolean reset)
      • heapHistToJSON

        public static java.lang.String heapHistToJSON​(java.lang.String session)