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.

20 lines
507B

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