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