コード例 #1
0
 //-----------------------------------------------------------------------------------------------------------------------
 /// <summary>
 /// Handles the Elapsed event of the timer control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Timers.ElapsedEventArgs"/> instance containing the event data.</param>
 private void timer_Elapsed(object sender, ElapsedEventArgs e)
 {
     if (!is_lock)
     {
         try
         {
             is_lock = true;
             if (flowController == null || pmaTaskHandler == null)
             {
                 if (flowController == null)
                 {
                     flowController = new PMAFlowController();
                 }
                 if (pmaTaskHandler == null)
                 {
                     pmaTaskHandler = new PMATaskHandler();
                 }
             }
             flowController.RunTask();
             pmaTaskHandler.RunTask();
         }
         finally
         {
             is_lock = false;
         }
     }
 }
コード例 #2
0
        private static void RunTest()
        {
            if (pmaTaskHandler == null)
            {
                pmaTaskHandler = new PMATaskHandler();
            }
            pmaTaskHandler.RunTask();

            //PMATaskHandler.CreateAllProcessCSVReport("G:\\PMAService\\Memlog\\IVP_23 April 2010_01-20-54.txt");
            //PMATaskHandler.CreateAllProcessCSVReport("D:\\My Applications\\ProcessMemoryAnalyzer\\PMATestApp\\bin\\Debug\\Memlog\\IVP_29 April 2010_20-14.txt");
        }