pmonitor 1.2.9__tar.gz → 1.3.1__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.9 → pmonitor-1.3.1}/PKG-INFO +1 -1
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/monitor_pids.py +24 -42
- {pmonitor-1.2.9 → pmonitor-1.3.1}/pmonitor.egg-info/PKG-INFO +1 -1
- {pmonitor-1.2.9 → pmonitor-1.3.1}/setup.py +1 -1
- {pmonitor-1.2.9 → pmonitor-1.3.1}/README.md +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/GpuMonitorLib.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/KernelBase.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/__init__.py +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/advapi32.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/bcrypt.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/kernel.appcore.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/kernel32.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/msvcirt.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/msvcp140.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/ntdll.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/pdh.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/rpcrt4.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/sechost.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/ucrtbased.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/vcruntime140.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/DLL/vcruntime140_1.dll +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/WinPidUtil.py +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/__init__.py +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/exec/GpuMonitor +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/exec/__init__.py +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/get_process_name.py +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/monitor_mac.py +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/monitor_win.py +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/run_monitor.py +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/monitor/sys_info.py +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/pmonitor.egg-info/SOURCES.txt +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/pmonitor.egg-info/dependency_links.txt +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/pmonitor.egg-info/entry_points.txt +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/pmonitor.egg-info/top_level.txt +0 -0
- {pmonitor-1.2.9 → pmonitor-1.3.1}/setup.cfg +0 -0
|
@@ -203,27 +203,23 @@ class PidsPerf:
|
|
|
203
203
|
if pid == p_pid:
|
|
204
204
|
|
|
205
205
|
if gpu_info is not None:
|
|
206
|
+
print('gpu info:',gpu_info)
|
|
206
207
|
for item in gpu_info:
|
|
207
208
|
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
|
-
|
|
209
|
+
main_gpu_dedicated_sum += item['GPUProcessMemoryDedicatedUsage'] # (专用内存)
|
|
210
|
+
main_gpu_system_sum += item['GPUProcessMemorySharedUsage'] # (共享内存)
|
|
211
|
+
main_gpu_committed_sum += item['GPUProcessMemoryTotalCommitted'] # (总使用内存)
|
|
212
|
+
main_gpu_percent_sum += item['GPUUtilizationPercent'] # (GPU内存占比)
|
|
213
|
+
print('主进程pid:', item['ProcessID'], 'Dedicated:',
|
|
214
|
+
main_gpu_dedicated_sum,
|
|
215
|
+
'System:', main_gpu_system_sum,
|
|
216
|
+
'Committed:', main_gpu_committed_sum, 'GPU Usage:',
|
|
217
|
+
main_gpu_percent_sum)
|
|
218
|
+
main_data = {'cpu': cpu_usage, 'private': private_mem, "workset": workSet_mem,
|
|
219
|
+
'gpu_Dedicated': round(float(main_gpu_dedicated_sum), 2),
|
|
220
|
+
'gpu_System': round(float(main_gpu_system_sum), 2),
|
|
221
|
+
'gpu_Committed': round(float(main_gpu_committed_sum), 2),
|
|
222
|
+
'gpu_Usage': round(float(main_gpu_percent_sum), 2)}
|
|
227
223
|
|
|
228
224
|
# print(
|
|
229
225
|
# f'主进程数据:cpu:{cpu_usage},workSet:{workSet_mem},private:{private_mem},mem_percent:{mem_percent},thread_count:{thread_count}')
|
|
@@ -236,35 +232,21 @@ class PidsPerf:
|
|
|
236
232
|
if gpu_info is not None:
|
|
237
233
|
for item in gpu_info:
|
|
238
234
|
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)
|
|
235
|
+
print('子进程pid:', item['ProcessID'], 'Dedicated:',
|
|
236
|
+
item['GPUProcessMemoryDedicatedUsage'],
|
|
237
|
+
'System:', item['GPUProcessMemorySharedUsage'],
|
|
238
|
+
'Committed:', item['GPUProcessMemoryTotalCommitted'], 'GPU Usage:',
|
|
239
|
+
item['GPUUtilizationPercent'])
|
|
240
|
+
minor_gpu_dedicated_sum += item['GPUProcessMemoryDedicatedUsage']
|
|
241
|
+
minor_gpu_system_sum += item['GPUProcessMemorySharedUsage']
|
|
242
|
+
minor_gpu_committed_sum += item['GPUProcessMemoryTotalCommitted']
|
|
243
|
+
minor_gpu_percent_sum += item['GPUUtilizationPercent']
|
|
259
244
|
minor_io_read_sum += read_bytes_sec # 所有进程IO读取速率总数
|
|
260
245
|
minor_io_write_sum += write_bytes_sec # 所有进程IO写入速率总数
|
|
261
246
|
|
|
262
247
|
else:
|
|
263
248
|
# print(f"PID {pid}: Process not found or access denied")
|
|
264
249
|
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
250
|
disk_data = {'io read': minor_io_read_sum, 'io write': minor_io_write_sum}
|
|
269
251
|
other_data = {'cpu': minor_cpu_sum, 'private': round(float(minor_private_mem_sum), 2),
|
|
270
252
|
'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
|