Esempio n. 1
0
 internal static void Postfix(float currentFrameTime, float frameTimeDelta,
                              BrainScheduler.BrainGroup __instance)
 {
     DebugMetrics.LogBrainBalance(__instance.GetType().Name, frameTimeDelta,
                                  currentFrameTime, __instance.probeCount, __instance.probeSize);
 }
Esempio n. 2
0
 /// <summary>
 /// Logs a method invocation.
 /// </summary>
 /// <param name="time">The time it took the method to run in microseconds.</param>
 public void Log(long time)
 {
     Interlocked.Increment(ref methodCalls);
     DebugMetrics.Accumulate(ref timeInMethod, time);
 }