< 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:2
Coverable lines:2
Total lines:28
Line coverage:0% (0 of 2)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

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) =>
 020            other == value;
 21
 22        public void Set(float fpsCount, int hiccuptCount, float hiccupSum, float totalSeconds) =>
 023            Set(new PerformanceMetricsData
 24            {
 25                fpsCount = fpsCount, hiccupCount = hiccuptCount, hiccupSum = hiccupSum, totalSeconds = totalSeconds
 26            });
 27    }
 28}