Esempio n. 1
0
        public static PerformancePannel GetNamedPannel(string pannelName)
        {
            if (!resultsPannels.ContainsKey(pannelName))
            {
                PerformancePannel timingPannelToReportTo = new PerformancePannel(pannelName);
                resultsPannels.Add(pannelName, timingPannelToReportTo);
            }

            return(resultsPannels[pannelName]);
        }
Esempio n. 2
0
        public PerformanceTimer(string pannelName, string name)
        {
			lock(locker)
			{
				if (!InPerformanceMeasuring)
				{
					InPerformanceMeasuring = true;
					if (pannelName == "_LAST_")
					{
						pannelName = lastPannelName;
					}
					this.timingPannelToReportTo = PerformancePannel.GetNamedPannel(pannelName);
					this.Name = name;
					this.timingPannelToReportTo.Start(this);
					lastPannelName = pannelName;
					InPerformanceMeasuring = false;
				}
			}
		}
Esempio n. 3
0
 public PerformanceTimer(string pannelName, string name)
 {
     lock (locker)
     {
         if (!InPerformanceMeasuring)
         {
             InPerformanceMeasuring = true;
             if (pannelName == "_LAST_")
             {
                 pannelName = lastPannelName;
             }
             this.timingPannelToReportTo = PerformancePannel.GetNamedPannel(pannelName);
             this.Name = name;
             this.timingPannelToReportTo.Start(this);
             lastPannelName         = pannelName;
             InPerformanceMeasuring = false;
         }
     }
 }
Esempio n. 4
0
		public static PerformancePannel GetNamedPannel(string pannelName)
		{
			if (!resultsPannels.ContainsKey(pannelName))
			{
				PerformancePannel timingPannelToReportTo = new PerformancePannel(pannelName);
				resultsPannels.Add(pannelName, timingPannelToReportTo);
			}

			return resultsPannels[pannelName];
		}