pmonitor 1.2.4__py3-none-any.whl → 1.2.5__py3-none-any.whl
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.
- monitor/monitor_pids.py +22 -21
- {pmonitor-1.2.4.dist-info → pmonitor-1.2.5.dist-info}/METADATA +1 -1
- {pmonitor-1.2.4.dist-info → pmonitor-1.2.5.dist-info}/RECORD +6 -6
- {pmonitor-1.2.4.dist-info → pmonitor-1.2.5.dist-info}/WHEEL +0 -0
- {pmonitor-1.2.4.dist-info → pmonitor-1.2.5.dist-info}/entry_points.txt +0 -0
- {pmonitor-1.2.4.dist-info → pmonitor-1.2.5.dist-info}/top_level.txt +0 -0
monitor/monitor_pids.py
CHANGED
|
@@ -206,26 +206,24 @@ class PidsPerf:
|
|
|
206
206
|
for item in gpu_info:
|
|
207
207
|
if item['ProcessID'] == p_pid:
|
|
208
208
|
if item['GPUUtilizationPercent'] < 0:
|
|
209
|
-
print('主进程pid:', item['ProcessID'], 'Dedicated:', 0,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
209
|
+
# print('主进程pid:', item['ProcessID'], 'Dedicated:', 0,
|
|
210
|
+
# 'System:', 0,
|
|
211
|
+
# 'Committed:', 0, 'GPU Usage:',
|
|
212
|
+
# 0)
|
|
213
213
|
main_gpu_dedicated_sum += 0
|
|
214
214
|
main_gpu_system_sum += 0
|
|
215
215
|
main_gpu_committed_sum += 0
|
|
216
216
|
else:
|
|
217
|
-
print('主进程pid:', item['ProcessID'], 'Dedicated:',
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
217
|
+
# print('主进程pid:', item['ProcessID'], 'Dedicated:',
|
|
218
|
+
# item['GPUProcessMemoryLocalUsage'],
|
|
219
|
+
# 'System:', item['GPUProcessMemorySharedUsage'],
|
|
220
|
+
# 'Committed:', item['GPUProcessMemoryTotalCommitted'], 'GPU Usage:',
|
|
221
|
+
# item['GPUUtilizationPercent'])
|
|
222
222
|
main_gpu_dedicated_sum += item['GPUProcessMemoryDedicatedUsage'] # (专用内存)
|
|
223
223
|
main_gpu_system_sum += item['GPUProcessMemorySharedUsage'] # (共享内存)
|
|
224
224
|
main_gpu_committed_sum += item['GPUProcessMemoryTotalCommitted'] # (总使用内存)
|
|
225
225
|
main_gpu_percent_sum += item['GPUUtilizationPercent'] # (GPU内存占比)
|
|
226
|
-
|
|
227
|
-
'gpu_Dedicated': round(main_gpu_dedicated_sum, 2), 'gpu_System': round(main_gpu_system_sum, 2),
|
|
228
|
-
'gpu_Committed': round(main_gpu_committed_sum, 2), 'gpu_Usage': round(main_gpu_percent_sum, 2)}
|
|
226
|
+
|
|
229
227
|
|
|
230
228
|
# print(
|
|
231
229
|
# f'主进程数据:cpu:{cpu_usage},workSet:{workSet_mem},private:{private_mem},mem_percent:{mem_percent},thread_count:{thread_count}')
|
|
@@ -239,20 +237,20 @@ class PidsPerf:
|
|
|
239
237
|
for item in gpu_info:
|
|
240
238
|
if item['ProcessID'] != p_pid:
|
|
241
239
|
if item['GPUUtilizationPercent'] < 0:
|
|
242
|
-
print('子进程pid:', item['ProcessID'], 'Dedicated:', 0,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
240
|
+
# print('子进程pid:', item['ProcessID'], 'Dedicated:', 0,
|
|
241
|
+
# 'System:', 0,
|
|
242
|
+
# 'Committed:', 0, 'GPU Usage:',
|
|
243
|
+
# 0)
|
|
246
244
|
minor_gpu_dedicated_sum += 0
|
|
247
245
|
minor_gpu_system_sum += 0
|
|
248
246
|
minor_gpu_committed_sum += 0
|
|
249
247
|
minor_gpu_percent_sum += 0
|
|
250
248
|
else:
|
|
251
|
-
print('子进程pid:', item['ProcessID'], 'Dedicated:',
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
249
|
+
# print('子进程pid:', item['ProcessID'], 'Dedicated:',
|
|
250
|
+
# item['GPUProcessMemoryLocalUsage'],
|
|
251
|
+
# 'System:', item['GPUProcessMemorySharedUsage'],
|
|
252
|
+
# 'Committed:', item['GPUProcessMemoryTotalCommitted'], 'GPU Usage:',
|
|
253
|
+
# item['GPUUtilizationPercent'])
|
|
256
254
|
minor_gpu_dedicated_sum += item['GPUProcessMemoryLocalUsage']
|
|
257
255
|
minor_gpu_system_sum += item['GPUProcessMemorySharedUsage']
|
|
258
256
|
minor_gpu_committed_sum += item['GPUProcessMemoryTotalCommitted']
|
|
@@ -263,6 +261,9 @@ class PidsPerf:
|
|
|
263
261
|
else:
|
|
264
262
|
# print(f"PID {pid}: Process not found or access denied")
|
|
265
263
|
continue
|
|
264
|
+
main_data = {'cpu': cpu_usage, 'private': private_mem, "workset": workSet_mem,
|
|
265
|
+
'gpu_Dedicated': round(main_gpu_dedicated_sum, 2), 'gpu_System': round(main_gpu_system_sum, 2),
|
|
266
|
+
'gpu_Committed': round(main_gpu_committed_sum, 2), 'gpu_Usage': round(main_gpu_percent_sum, 2)}
|
|
266
267
|
disk_data = {'io read': minor_io_read_sum, 'io write': minor_io_write_sum}
|
|
267
268
|
other_data = {'cpu': minor_cpu_sum, 'private': round(float(minor_private_mem_sum), 2),
|
|
268
269
|
'workset': round(float(minor_workSet_mem_sum), 2),
|
|
@@ -2,7 +2,7 @@ monitor/WinPidUtil.py,sha256=NGkit8UoDAW7dz1vrwsb50QFroO-0hZ44fd_fykJ3WM,8523
|
|
|
2
2
|
monitor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
monitor/get_process_name.py,sha256=eUElEd6chW-gw416o3VZg3UZPi8ZCG9rcw8ayrpVcz4,3620
|
|
4
4
|
monitor/monitor_mac.py,sha256=OoptTTXTZQupzBwgGOfKNjyYAKBxDy-wI3l6T7XVE8s,4651
|
|
5
|
-
monitor/monitor_pids.py,sha256=
|
|
5
|
+
monitor/monitor_pids.py,sha256=ecWNnVpUFZcG8Ro44iEg1Mq5G4p2wLvUoJtn5m7sKMA,16681
|
|
6
6
|
monitor/monitor_win.py,sha256=xs5nzqqEPoDmJTegh3lQhVjjpPcOWnruWKK65ttqnTo,6161
|
|
7
7
|
monitor/run_monitor.py,sha256=2RcL-HbvMu_tHRJ7H5-6MxzNtotaktLKm0xCIYHZJZY,1577
|
|
8
8
|
monitor/sys_info.py,sha256=aNultuRoQuRYPkYo397xAXVDXP07Qx5JOHtYzNmEvuc,3208
|
|
@@ -24,8 +24,8 @@ monitor/DLL/vcruntime140.dll,sha256=AsaqDm5iRBGp8ZsDYKeGWrFZCOJgJFEOXDipwINiw1o,
|
|
|
24
24
|
monitor/DLL/vcruntime140_1.dll,sha256=fdmqAuJxxoym1fGNZR0joV1yWXFa9DMmV4993ifzdjc,49640
|
|
25
25
|
monitor/exec/GpuMonitor,sha256=5QBCxkxnaqZcfziHQRIEhKzlfzTqDHTnEOf6D_b4x2g,111568
|
|
26
26
|
monitor/exec/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
|
-
pmonitor-1.2.
|
|
28
|
-
pmonitor-1.2.
|
|
29
|
-
pmonitor-1.2.
|
|
30
|
-
pmonitor-1.2.
|
|
31
|
-
pmonitor-1.2.
|
|
27
|
+
pmonitor-1.2.5.dist-info/METADATA,sha256=NEu7-2cejN2Kbl-iakuvDBOzs1zTk5h-uwaYcMKxdRg,215
|
|
28
|
+
pmonitor-1.2.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
29
|
+
pmonitor-1.2.5.dist-info/entry_points.txt,sha256=vmlLEANgf2fZar9BeXYiKdF6GMJbVXip-SIZx5yPXDo,55
|
|
30
|
+
pmonitor-1.2.5.dist-info/top_level.txt,sha256=tGkQDkVeyKgP5Rr7acpp0df83NBAnI8up0sGwRxuuQ4,8
|
|
31
|
+
pmonitor-1.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|