public static void MeasurePerformanceUntilRender(PerformanceEvent performanceEvent, string additionalInformation)
 {
     PerformanceLogger[] loggers = PerformanceUtility.Loggers;
     for (int i = 0; i < (int)loggers.Length; i++)
     {
         loggers[i].AddStartEvent(performanceEvent, additionalInformation);
     }
     PerformanceUtility.EndPerformanceSequenceAfterRender(performanceEvent, additionalInformation);
 }
 public static void MeasurePerformanceUntilIdle(PerformanceEvent performanceEvent)
 {
     PerformanceLogger[] loggers = PerformanceUtility.Loggers;
     for (int i = 0; i < (int)loggers.Length; i++)
     {
         loggers[i].AddStartEvent(performanceEvent);
     }
     PerformanceUtility.EndPerformanceSequenceOnIdle(performanceEvent);
 }
 public static void EndPerformanceSequenceAfterRender(PerformanceEvent performanceEvent, string additionalInformation)
 {
     if (Application.Current != null)
     {
         Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Loaded, new DispatcherOperationCallback((object arg) =>
         {
             PerformanceUtility.EndPerformanceSequence(performanceEvent, additionalInformation);
             return(null);
         }), null);
     }
 }
 public static void EndPerformanceSequenceOnIdle(PerformanceEvent performanceEvent)
 {
     if (Application.Current != null)
     {
         Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new DispatcherOperationCallback((object arg) =>
         {
             PerformanceUtility.EndPerformanceSequence(performanceEvent);
             return(null);
         }), null);
     }
 }
 public void Dispose()
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent);
 }
 public PerformanceSequenceToken(PerformanceEvent performanceEvent)
 {
     this.performanceEvent = performanceEvent;
     PerformanceUtility.StartPerformanceSequence(this.performanceEvent);
 }
 // <EndPerformanceSequenceAfterRender>b__8
 public object u003cEndPerformanceSequenceAfterRenderu003eb__8(object arg)
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent, this.additionalInformation);
     return(null);
 }
 // <EndPerformanceSequenceAfterRender>b__4
 public object u003cEndPerformanceSequenceAfterRenderu003eb__4(object arg)
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent);
     return(null);
 }
 // <EndPerformanceSequenceOnIdle>b__0
 public object u003cEndPerformanceSequenceOnIdleu003eb__0(object arg)
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent);
     return(null);
 }