MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / gather_memory_info

Function gather_memory_info

tensorflow/tools/test/system_info_lib.py:67–73  ·  view source on GitHub ↗

Gather memory info.

()

Source from the content-addressed store, hash-verified

65
66
67def gather_memory_info():
68 """Gather memory info."""
69 mem_info = test_log_pb2.MemoryInfo()
70 vmem = psutil.virtual_memory()
71 mem_info.total = vmem.total
72 mem_info.available = vmem.available
73 return mem_info
74
75
76def gather_cpu_info():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected