pmonitor 1.2.8__tar.gz → 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pmonitor-1.2.8 → pmonitor-1.3.0}/PKG-INFO +1 -1
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/monitor_pids.py +23 -42
- {pmonitor-1.2.8 → pmonitor-1.3.0}/pmonitor.egg-info/PKG-INFO +1 -1
- {pmonitor-1.2.8 → pmonitor-1.3.0}/setup.py +1 -1
- {pmonitor-1.2.8 → pmonitor-1.3.0}/README.md +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/GpuMonitorLib.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/KernelBase.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/__init__.py +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/advapi32.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/bcrypt.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/kernel.appcore.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/kernel32.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/msvcirt.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/msvcp140.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/ntdll.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/pdh.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/rpcrt4.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/sechost.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/ucrtbased.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/vcruntime140.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/DLL/vcruntime140_1.dll +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/WinPidUtil.py +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/__init__.py +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/exec/GpuMonitor +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/exec/__init__.py +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/get_process_name.py +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/monitor_mac.py +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/monitor_win.py +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/run_monitor.py +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/monitor/sys_info.py +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/pmonitor.egg-info/SOURCES.txt +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/pmonitor.egg-info/dependency_links.txt +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/pmonitor.egg-info/entry_points.txt +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/pmonitor.egg-info/top_level.txt +0 -0
- {pmonitor-1.2.8 → pmonitor-1.3.0}/setup.cfg +0 -0
|
@@ -205,25 +205,20 @@ class PidsPerf:
|
|
|
205
205
|
if gpu_info is not None:
|
|
206
206
|
for item in gpu_info:
|
|
207
207
|
if item['ProcessID'] == p_pid:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
main_gpu_dedicated_sum = item['GPUProcessMemoryDedicatedUsage'] # (专用内存)
|
|
223
|
-
main_gpu_system_sum = item['GPUProcessMemorySharedUsage'] # (共享内存)
|
|
224
|
-
main_gpu_committed_sum = item['GPUProcessMemoryTotalCommitted'] # (总使用内存)
|
|
225
|
-
main_gpu_percent_sum = item['GPUUtilizationPercent'] # (GPU内存占比)
|
|
226
|
-
|
|
208
|
+
main_gpu_dedicated_sum += item['GPUProcessMemoryDedicatedUsage'] # (专用内存)
|
|
209
|
+
main_gpu_system_sum += item['GPUProcessMemorySharedUsage'] # (共享内存)
|
|
210
|
+
main_gpu_committed_sum += item['GPUProcessMemoryTotalCommitted'] # (总使用内存)
|
|
211
|
+
main_gpu_percent_sum += item['GPUUtilizationPercent'] # (GPU内存占比)
|
|
212
|
+
print('主进程pid:', item['ProcessID'], 'Dedicated:',
|
|
213
|
+
main_gpu_dedicated_sum,
|
|
214
|
+
'System:', main_gpu_system_sum,
|
|
215
|
+
'Committed:', main_gpu_committed_sum, 'GPU Usage:',
|
|
216
|
+
main_gpu_percent_sum)
|
|
217
|
+
main_data = {'cpu': cpu_usage, 'private': private_mem, "workset": workSet_mem,
|
|
218
|
+
'gpu_Dedicated': round(float(main_gpu_dedicated_sum), 2),
|
|
219
|
+
'gpu_System': round(float(main_gpu_system_sum), 2),
|
|
220
|
+
'gpu_Committed': round(float(main_gpu_committed_sum), 2),
|
|
221
|
+
'gpu_Usage': round(float(main_gpu_percent_sum), 2)}
|
|
227
222
|
|
|
228
223
|
# print(
|
|
229
224
|
# f'主进程数据:cpu:{cpu_usage},workSet:{workSet_mem},private:{private_mem},mem_percent:{mem_percent},thread_count:{thread_count}')
|
|
@@ -236,35 +231,21 @@ class PidsPerf:
|
|
|
236
231
|
if gpu_info is not None:
|
|
237
232
|
for item in gpu_info:
|
|
238
233
|
if item['ProcessID'] != p_pid:
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
else:
|
|
249
|
-
|
|
250
|
-
minor_gpu_dedicated_sum += item['GPUProcessMemoryLocalUsage']
|
|
251
|
-
minor_gpu_system_sum += item['GPUProcessMemorySharedUsage']
|
|
252
|
-
minor_gpu_committed_sum += item['GPUProcessMemoryTotalCommitted']
|
|
253
|
-
minor_gpu_percent_sum += item['GPUUtilizationPercent']
|
|
254
|
-
print('子进程pid:', 'Dedicated:',
|
|
255
|
-
minor_gpu_dedicated_sum,
|
|
256
|
-
'System:', minor_gpu_system_sum,
|
|
257
|
-
'Committed:', minor_gpu_committed_sum, 'GPU Usage:',
|
|
258
|
-
minor_gpu_percent_sum)
|
|
234
|
+
print('子进程pid:', item['ProcessID'], 'Dedicated:',
|
|
235
|
+
item['GPUProcessMemoryDedicatedUsage'],
|
|
236
|
+
'System:', item['GPUProcessMemorySharedUsage'],
|
|
237
|
+
'Committed:', item['GPUProcessMemoryTotalCommitted'], 'GPU Usage:',
|
|
238
|
+
item['GPUUtilizationPercent'])
|
|
239
|
+
minor_gpu_dedicated_sum += item['GPUProcessMemoryDedicatedUsage']
|
|
240
|
+
minor_gpu_system_sum += item['GPUProcessMemorySharedUsage']
|
|
241
|
+
minor_gpu_committed_sum += item['GPUProcessMemoryTotalCommitted']
|
|
242
|
+
minor_gpu_percent_sum += item['GPUUtilizationPercent']
|
|
259
243
|
minor_io_read_sum += read_bytes_sec # 所有进程IO读取速率总数
|
|
260
244
|
minor_io_write_sum += write_bytes_sec # 所有进程IO写入速率总数
|
|
261
245
|
|
|
262
246
|
else:
|
|
263
247
|
# print(f"PID {pid}: Process not found or access denied")
|
|
264
248
|
continue
|
|
265
|
-
main_data = {'cpu': cpu_usage, 'private': private_mem, "workset": workSet_mem,
|
|
266
|
-
'gpu_Dedicated': round(main_gpu_dedicated_sum, 2), 'gpu_System': round(main_gpu_system_sum, 2),
|
|
267
|
-
'gpu_Committed': round(main_gpu_committed_sum, 2), 'gpu_Usage': round(main_gpu_percent_sum, 2)}
|
|
268
249
|
disk_data = {'io read': minor_io_read_sum, 'io write': minor_io_write_sum}
|
|
269
250
|
other_data = {'cpu': minor_cpu_sum, 'private': round(float(minor_private_mem_sum), 2),
|
|
270
251
|
'workset': round(float(minor_workSet_mem_sum), 2),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|