You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
553 B
C#

1 year ago
using System;
namespace UnityEditor.Performance.ProfileAnalyzer
{
[Serializable]
internal struct ThreadFrameTime : IComparable<ThreadFrameTime>
{
public int frameIndex;
public float ms;
public float msIdle;
public ThreadFrameTime(int index, float msTime, float msTimeIdle)
{
frameIndex = index;
ms = msTime;
msIdle = msTimeIdle;
}
public int CompareTo(ThreadFrameTime other)
{
return ms.CompareTo(other.ms);
}
}
}