Package mondrian.olap

Class QueryTiming

    • Constructor Detail

      • QueryTiming

        public QueryTiming()
    • Method Detail

      • init

        public void init​(boolean enabled)
        Initializes (or re-initializes) a query timing, also setting whether enabled. All previous stats are removed.
        Parameters:
        enabled - Whether to collect stats in future
      • done

        public void done()
      • markStart

        public final void markStart​(String name)
        Marks the start of a Query component's execution.
        Parameters:
        name - Name of the component
      • markEnd

        public final void markEnd​(String name)
        Marks the end of a Query component's execution.
        Parameters:
        name - Name of the component
      • markFull

        public final void markFull​(String name,
                                   long duration)
        Marks the duration of a Query component's execution. markFull is synchronized because it may be called from either Actor's spawn thread or RolapResultShepherd thread
        Parameters:
        name - Name of the component
        duration - Duration of the execution