Gather memory info.
()
| 65 | |
| 66 | |
| 67 | def 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 | |
| 76 | def gather_cpu_info(): |
no outgoing calls
no test coverage detected