< Summary

Class:MemoryDesktopDebugMetricModule
Assembly:FPSDisplay
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/Debugging/FPSDisplay/MetricsModules/MemoryDesktopDebugMetricModule.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:28
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SetUpModule(...)0%30500%
UpdateModule()0%2100%
EnableModule()0%2100%
DisableModule()0%2100%
Dispose()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/Debugging/FPSDisplay/MetricsModules/MemoryDesktopDebugMetricModule.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using DCL;
 4using DCL.Controllers;
 5using DCL.FPSDisplay;
 6using UnityEngine.Profiling;
 7
 8public class MemoryDesktopDebugMetricModule : IDebugMetricModule
 9{
 10
 11    private const string NO_DECIMALS = "##";
 12    private const float BYTES_TO_MEGABYTES = 1048576f;
 13
 14    public void SetUpModule(Dictionary<DebugValueEnum, Func<string>> updateValueDictionary)
 15    {
 016        updateValueDictionary.Add(DebugValueEnum.Memory_Total_Allocated, () =>  $"{(Profiler.GetTotalAllocatedMemoryLong
 017        updateValueDictionary.Add(DebugValueEnum.Memory_Reserved_Ram, () => $"{(Profiler.GetTotalReservedMemoryLong() / 
 018        updateValueDictionary.Add(DebugValueEnum.Memory_Mono, () => $"{(Profiler.GetMonoUsedSizeLong() / BYTES_TO_MEGABY
 019        updateValueDictionary.Add(DebugValueEnum.Memory_Graphics_Card, () => $"{(Profiler.GetAllocatedMemoryForGraphicsD
 020    }
 21
 022    public void UpdateModule() { }
 023    public void EnableModule() {  }
 024    public void DisableModule() {  }
 25
 026    public void Dispose() { }
 27
 28}