< Summary

Class:DCL.PerformanceMetricsDataVariable
Assembly:PerformanceController
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/Debugging/Performance/PerformanceMetricsDataVariable.cs
Covered lines:0
Uncovered lines:3
Coverable lines:3
Total lines:30
Line coverage:0% (0 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Equals(...)0%2100%
Set(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/Debugging/Performance/PerformanceMetricsDataVariable.cs

#LineLine coverage
 1using System;
 2using UnityEngine;
 3
 4namespace 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",
 16        menuName = "Variables/PerformanceMetricsDataVariable")]
 17    public class PerformanceMetricsDataVariable : BaseVariableAsset<PerformanceMetricsData>
 18    {
 19        public override bool Equals(PerformanceMetricsData other)
 20        {
 021            return other == value;
 22        }
 23
 24        public void Set(float fpsCount, int hiccuptCount, float hiccupSum, float totalSeconds)
 25        {
 026            Set(new PerformanceMetricsData
 27                {fpsCount = fpsCount, hiccupCount = hiccuptCount, hiccupSum = hiccupSum, totalSeconds = totalSeconds});
 028        }
 29    }
 30}