Class SimpleProfileMonitor

    • Constructor Detail

      • SimpleProfileMonitor

        public SimpleProfileMonitor()
        Instantiates a new simple profile monitor.
      • SimpleProfileMonitor

        public SimpleProfileMonitor​(java.lang.String rootLabel)
        Instantiates a new simple profile monitor.
        Parameters:
        rootLabel - the root label
      • SimpleProfileMonitor

        public SimpleProfileMonitor​(org.aspectj.lang.Signature label,
                                    SimpleProfileMonitor parent)
        Instantiates a new simple profile monitor.
        Parameters:
        label - the label
        parent - the parent
      • SimpleProfileMonitor

        public SimpleProfileMonitor​(java.lang.String label,
                                    SimpleProfileMonitor parent)
        Instantiates a new simple profile monitor.
        Parameters:
        label - the label
        parent - the parent
    • Method Detail

      • addChild

        protected void addChild​(SimpleProfileMonitor child)
        Adds the child.
        Parameters:
        child - the child
      • addChildren

        public void addChildren​(java.util.List<java.lang.String> labels)
        Adds the children.
        Parameters:
        labels - the labels
      • addChild

        public void addChild​(java.lang.String lbl)
        Adds the child.
        Parameters:
        lbl - the label
      • getNumberOfMonitors

        public int getNumberOfMonitors()
        Gets the number of monitors.
        Returns:
        the number of monitors
        Since:
        1.6
      • removeMonitor

        public void removeMonitor​(SimpleProfileMonitor monitor)
        Removes the given child monitor. To be sure to get the correct entry we use the label of the given monitor.
        Parameters:
        monitor - the monitor
        Since:
        1.6
      • getMonitor

        public SimpleProfileMonitor getMonitor​(org.aspectj.lang.Signature sig)
        We use now the signature without the return value. That's enough.
        Parameters:
        sig - the sig
        Returns:
        the monitor for sig
      • getMonitor

        public SimpleProfileMonitor getMonitor​(java.lang.String lbl)
        Gets the monitor.
        Parameters:
        lbl - the label as String
        Returns:
        the monitor
        Since:
        1.4.2
      • toString

        public java.lang.String toString()
        To string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string
        See Also:
        Object.toString()
      • equals

        public boolean equals​(java.lang.Object obj)
        Only two monitors of the same instance can be equals. Otherwise the result is the same as the one of the superclass.
        Overrides:
        equals in class AbstractProfileMonitor
        Parameters:
        obj - the obj
        Returns:
        true, if successful
        See Also:
        Object.equals(java.lang.Object)