| | 1 | | using System; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL |
| | 5 | | { |
| | 6 | | [Serializable] |
| | 7 | | public class PerformanceMetricsData |
| | 8 | | { |
| | 9 | | public float fpsCount; |
| | 10 | | public int hiccupCount; |
| | 11 | | public float hiccupSum; |
| | 12 | | public float totalSeconds; |
| | 13 | | } |
| | 14 | |
|
| | 15 | | [CreateAssetMenu(fileName = "PerformanceMetricsDataVariable", menuName = "Variables/PerformanceMetricsDataVariable") |
| | 16 | | public class PerformanceMetricsDataVariable : BaseVariableAsset<PerformanceMetricsData> |
| | 17 | | { |
| 0 | 18 | | public override bool Equals(PerformanceMetricsData other) { return other == value; } |
| | 19 | |
|
| 0 | 20 | | public void Set(float fpsCount, int hiccuptCount, float hiccupSum, float totalSeconds) { Set(new PerformanceMetr |
| | 21 | | } |
| | 22 | | } |