(processName="python", instance=0)
| 118 | win32pdh.CloseQuery(hq) |
| 119 | |
| 120 | def memusage(processName="python", instance=0): |
| 121 | # from win32pdhutil, part of the win32all package |
| 122 | import win32pdh |
| 123 | return GetPerformanceAttributes("Process", "Virtual Bytes", |
| 124 | processName, instance, |
| 125 | win32pdh.PDH_FMT_LONG, None) |
| 126 | elif sys.platform[:5] == 'linux': |
| 127 | |
| 128 | def memusage(_proc_pid_stat=f'/proc/{os.getpid()}/stat'): |
nothing calls this directly
no test coverage detected