ThreadFrameTime.cs 553 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace UnityEditor.Performance.ProfileAnalyzer
  3. {
  4. [Serializable]
  5. internal struct ThreadFrameTime : IComparable<ThreadFrameTime>
  6. {
  7. public int frameIndex;
  8. public float ms;
  9. public float msIdle;
  10. public ThreadFrameTime(int index, float msTime, float msTimeIdle)
  11. {
  12. frameIndex = index;
  13. ms = msTime;
  14. msIdle = msTimeIdle;
  15. }
  16. public int CompareTo(ThreadFrameTime other)
  17. {
  18. return ms.CompareTo(other.ms);
  19. }
  20. }
  21. }