(GlobalMemory memory)
| 194 | } |
| 195 | |
| 196 | private static void printMemory(GlobalMemory memory) { |
| 197 | oshi.add("Physical Memory: \n " + memory.toString()); |
| 198 | VirtualMemory vm = memory.getVirtualMemory(); |
| 199 | oshi.add("Virtual Memory: \n " + vm.toString()); |
| 200 | List<PhysicalMemory> pmList = memory.getPhysicalMemory(); |
| 201 | if (!pmList.isEmpty()) { |
| 202 | oshi.add("Physical Memory: "); |
| 203 | for (PhysicalMemory pm : pmList) { |
| 204 | oshi.add(" " + pm.toString()); |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | private static void printCpu(CentralProcessor processor) { |
| 210 | oshi.add("Context Switches/Interrupts: " + processor.getContextSwitches() + " / " + processor.getInterrupts()); |
no test coverage detected