1 write to _fileSystem
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Linux\LinuxUtilizationParserCgroupV2.cs (1)
94
_fileSystem
= fileSystem;
16 references to _fileSystem
Microsoft.Extensions.Diagnostics.ResourceMonitoring (16)
Linux\LinuxUtilizationParserCgroupV2.cs (16)
104
if (!
_fileSystem
.Exists(_cpuacctUsage))
110
_fileSystem
.ReadAll(_cpuacctUsage, bufferWriter.Buffer);
139
_fileSystem
.ReadFirstLine(_procStat, bufferWriter.Buffer);
179
if (LinuxUtilizationParserCgroupV2.TryGetCpuUnitsFromCgroups(
_fileSystem
, out float cpus))
193
if (TryGetCgroupRequestCpu(
_fileSystem
, out float cpuPodRequest))
206
if (!
_fileSystem
.Exists(_memoryLimitInBytes))
217
_fileSystem
.ReadAll(_memoryLimitInBytes, bufferWriter.Buffer);
242
IReadOnlyCollection<string> memoryUsageInBytesSlicesPath =
_fileSystem
.GetDirectoryNames("/sys/fs/cgroup/", pattern);
250
if (!
_fileSystem
.Exists(memoryUsageInBytesFile))
255
_fileSystem
.ReadAll(memoryUsageInBytesFile, bufferWriter.Buffer);
285
if (!
_fileSystem
.Exists(_memoryStat))
293
_fileSystem
.ReadAll(_memoryStat, bufferWriter.Buffer);
315
if (!
_fileSystem
.Exists(_memoryUsageInBytes))
342
_fileSystem
.ReadFirstLine(_memInfo, bufferWriter.Buffer);
387
_fileSystem
.ReadFirstLine(_cpuSetCpus, bufferWriter.Buffer);
584
_fileSystem
.ReadAll(_memoryUsageInBytes, bufferWriter.Buffer);