Class GraphPlan


  • public class GraphPlan
    extends java.lang.Object
    Storage for traced plan of a series of CortexSession requests
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphPlan()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addToPlan​(java.lang.String className, java.lang.String methodName, java.lang.String elapsedTime)
      Pop on method exit
      protected java.lang.String formatLine​(java.lang.String id, java.lang.String className, java.lang.String methodName, java.lang.String elapsedTime)  
      void pushCall​(java.lang.String className, java.lang.String methodName)
      Push on method entry
      void toDot​(java.lang.String file)
      Create a dot notated file at any time from a CortexSession
      protected java.lang.String toId​(java.lang.String className, java.lang.String methodName)  
      • Methods inherited from class java.lang.Object

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

      • GraphPlan

        public GraphPlan()
    • Method Detail

      • toId

        protected java.lang.String toId​(java.lang.String className,
                                        java.lang.String methodName)
      • pushCall

        public void pushCall​(java.lang.String className,
                             java.lang.String methodName)
        Push on method entry
        Parameters:
        className - class of method
        methodName - name of method
      • addToPlan

        public void addToPlan​(java.lang.String className,
                              java.lang.String methodName,
                              java.lang.String elapsedTime)
        Pop on method exit
        Parameters:
        className - class of method
        methodName - name of method
        elapsedTime - time in method call (including subcalls)
      • formatLine

        protected java.lang.String formatLine​(java.lang.String id,
                                              java.lang.String className,
                                              java.lang.String methodName,
                                              java.lang.String elapsedTime)
      • toDot

        public void toDot​(java.lang.String file)
                   throws java.io.IOException
        Create a dot notated file at any time from a CortexSession
        Parameters:
        file - location to write to
        Throws:
        java.io.IOException