Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EngineProfilerBehaviour.cs 530B

7 years ago
123456789101112131415161718192021
  1. #if asdUNITY_EDITOR
  2. using System;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. //This profiler is based on the Entitas Visual Debugging tool
  6. //https://github.com/sschmid/Entitas-CSharp
  7. namespace Svelto.ECS.Profiler
  8. {
  9. public class EngineProfilerBehaviour : MonoBehaviour
  10. {
  11. public Dictionary<Type, EngineInfo>.ValueCollection engines { get { return EngineProfiler.engineInfos.Values; } }
  12. public void ResetDurations()
  13. {
  14. EngineProfiler.ResetDurations();
  15. }
  16. }
  17. }
  18. #endif