public virtual void statusChanged(Recognizer.State status)
 {
     if (status == Recognizer.State.__DEALLOCATED)
     {
         this.printStats();
     }
 }
Exemple #2
0
        public void StatusChanged(Recognizer.State status)
        {
            if (status == Recognizer.State.Allocated)
            {
                if (_showTimers)
                {
                    TimerPool.DumpAll();
                }
            }

            if (status == Recognizer.State.Deallocating)
            {
                if (_showTimers)
                {
                    TimerPool.DumpAll();
                }
            }

            if (status == Recognizer.State.Deallocated)
            {
                if (_showSummary)
                {
                    ShowAudioSummary();
                }
            }
        }
Exemple #3
0
 public virtual void statusChanged(Recognizer.State status)
 {
     if (status == Recognizer.State.__DEALLOCATED)
     {
         this.calculateMemoryUsage(this.showSummary);
     }
 }
Exemple #4
0
 public void StatusChanged(Recognizer.State status)
 {
     if (status == Recognizer.State.Deallocated)
     {
         CalculateMemoryUsage(_showSummary);
     }
 }
Exemple #5
0
 public void StatusChanged(Recognizer.State status)
 {
     if (status == Recognizer.State.Deallocated)
     {
         PrintStats();
     }
 }
 public virtual void statusChanged(Recognizer.State status)
 {
     if (status == Recognizer.State.__DEALLOCATED && this.showSummary)
     {
         this.logger.info("\n# --------------- Summary statistics ---------");
         this.aligner.printTotalSummary();
     }
 }
Exemple #7
0
 public void StatusChanged(Recognizer.State status)
 {
     if (status == Recognizer.State.Deallocated)
     {
         if (_showSummary)
         {
             this.LogInfo("\n# --------------- Summary statistics ---------");
             Aligner.PrintTotalSummary();
         }
     }
 }
Exemple #8
0
 public virtual void statusChanged(Recognizer.State status)
 {
     if (status == Recognizer.State.__ALLOCATED && this.showTimers)
     {
         TimerPool.dumpAll(this.logger);
     }
     if (status == Recognizer.State.__DEALLOCATING && this.showTimers)
     {
         TimerPool.dumpAll(this.logger);
     }
     if (status == Recognizer.State.__DEALLOCATED && this.showSummary)
     {
         this.showAudioSummary();
     }
 }
Exemple #9
0
        public void StatusChanged(Recognizer.State status)
        {
            List <IRunnable> runnableList = null;

            if (status == Recognizer.State.Allocated)
            {
                runnableList = _allocatedMonitors;
            }
            else if (status == Recognizer.State.Deallocated)
            {
                runnableList = _deallocatedMonitors;
            }

            if (runnableList != null)
            {
                foreach (IRunnable r in runnableList)
                {
                    r.Run();
                }
            }
        }
Exemple #10
0
        public virtual void statusChanged(Recognizer.State status)
        {
            List list = null;

            if (status == Recognizer.State.__ALLOCATED)
            {
                list = this.allocatedMonitors;
            }
            else if (status == Recognizer.State.__DEALLOCATED)
            {
                list = this.deallocatedMonitors;
            }
            if (list != null)
            {
                Iterator iterator = list.iterator();
                while (iterator.hasNext())
                {
                    Runnable runnable = (Runnable)iterator.next();
                    runnable.run();
                }
            }
        }