Ejemplo 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]);
        }
Ejemplo 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;
				}
			}
		}
Ejemplo 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;
         }
     }
 }
Ejemplo 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];
		}