Example #1
0
 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);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 public void Dispose()
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent);
 }
Example #4
0
 // <EndPerformanceSequenceAfterRender>b__8
 public object u003cEndPerformanceSequenceAfterRenderu003eb__8(object arg)
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent, this.additionalInformation);
     return(null);
 }
Example #5
0
 // <EndPerformanceSequenceAfterRender>b__4
 public object u003cEndPerformanceSequenceAfterRenderu003eb__4(object arg)
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent);
     return(null);
 }
Example #6
0
 // <EndPerformanceSequenceOnIdle>b__0
 public object u003cEndPerformanceSequenceOnIdleu003eb__0(object arg)
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent);
     return(null);
 }