pmonitor 1.5.3__py3-none-any.whl → 1.5.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.
Binary file
monitor/monitor_pids.py CHANGED
@@ -123,8 +123,8 @@ class PidsPerf:
123
123
  gpu_monitor_dll.GetGPUDataForProcess.argtypes = [ctypes.c_ulong]
124
124
  gpu_monitor_dll.GetGPUDataForProcess.restype = ctypes.c_char_p
125
125
  # 获取GPU物理内存
126
- computer = Computer()
127
- gpu_key = list(computer.gpu.keys())[0]
126
+ # computer = Computer()
127
+ # gpu_key = list(computer.gpu.keys())[0]
128
128
  while True:
129
129
  minor_cpu_sum = 0
130
130
  minor_workSet_mem_sum = 0
@@ -157,7 +157,7 @@ class PidsPerf:
157
157
  child_pids.add(p_pid) # app内所有pid
158
158
  child_pids = {pid for pid in child_pids if psutil.pid_exists(pid)} # 移除不存在的进程
159
159
 
160
- small_data = computer.gpu[gpu_key]['SmallData'] # 获取GPU物理内存信息
160
+ # small_data = computer.gpu[gpu_key]['SmallData'] # 获取GPU物理内存信息
161
161
  try:
162
162
  new_pids_cpu_time_pre = {pid: pidWinPerf.get_process_cpu_time(pid) for pid in child_pids if
163
163
  pid not in process_cpu_times_pre}
@@ -263,17 +263,17 @@ class PidsPerf:
263
263
  'gpu_System': round(minor_gpu_system_sum, 2),
264
264
  'gpu_Committed': round(minor_gpu_committed_sum, 2),
265
265
  'gpu_Usage': round(minor_gpu_percent_sum, 2)}
266
- if 'GPU Memory Used' in small_data:
267
- gpu_data = {'gpu memory usage': round(small_data['GPU Memory Used'], 2),
268
- 'gpu memory total': round(small_data['GPU Memory Total'], 2),
269
- 'gpu memory free': round(small_data['GPU Memory Free'], 2)}
270
- else:
271
- gpu_data = {'gpu memory usage': round(small_data['D3D Shared Memory Used'], 2),
272
- 'gpu memory total': round(small_data['D3D Shared Memory Total'], 2),
273
- 'gpu memory free': round(small_data['D3D Shared Memory Free'], 2)}
266
+ # if 'GPU Memory Used' in small_data:
267
+ # gpu_data = {'gpu memory usage': round(small_data['GPU Memory Used'], 2),
268
+ # 'gpu memory total': round(small_data['GPU Memory Total'], 2),
269
+ # 'gpu memory free': round(small_data['GPU Memory Free'], 2)}
270
+ # else:
271
+ # gpu_data = {'gpu memory usage': round(small_data['D3D Shared Memory Used'], 2),
272
+ # 'gpu memory total': round(small_data['D3D Shared Memory Total'], 2),
273
+ # 'gpu memory free': round(small_data['D3D Shared Memory Free'], 2)}
274
274
  try:
275
275
  data = {'main': main_data, 'other': other_data, 'disk': disk_data,
276
- 'gpu': gpu_data,
276
+ # 'gpu': gpu_data,
277
277
  'memory_total': memory_total,
278
278
  'memory_available': memory_available}
279
279
  json_data = json.dumps(data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pmonitor
3
- Version: 1.5.3
3
+ Version: 1.5.5
4
4
  Summary: pc monitor
5
5
  Author: cfr
6
6
  Author-email: 1354592998@qq.com
@@ -4,11 +4,11 @@ monitor/get_process_name.py,sha256=HxePo2gdrTo2Ukg4DTnYzUMdczVWywCeLCXQ-RRWyu8,3
4
4
  monitor/mac_gpu.py,sha256=kQDPMW04lIYPBbJw772Jh1OQxj-D4JNmdjJlP6BuR4w,2320
5
5
  monitor/monitor_mac.py,sha256=OoptTTXTZQupzBwgGOfKNjyYAKBxDy-wI3l6T7XVE8s,4651
6
6
  monitor/monitor_mac_vmmap.py,sha256=2ZLhig5ymY6XU7bZGnHM9VIK-d5DAqWOFItIfv7KDPE,3819
7
- monitor/monitor_pids.py,sha256=uiTMxIof2RSFw4-U_S93QD9svjZ3EXFXCgkvrznZ58E,16748
7
+ monitor/monitor_pids.py,sha256=VqgN4puRMDXzNukiHVrZp-gsYKswUiFkuvhPRo56sII,16772
8
8
  monitor/monitor_win.py,sha256=xs5nzqqEPoDmJTegh3lQhVjjpPcOWnruWKK65ttqnTo,6161
9
9
  monitor/run_monitor.py,sha256=HDQXHIx47ZRN4Gp0PTr0yWKVM28n8A7-NaO--_pdgso,1577
10
10
  monitor/sys_info.py,sha256=aNultuRoQuRYPkYo397xAXVDXP07Qx5JOHtYzNmEvuc,3208
11
- monitor/DLL/GpuMonitorLib.dll,sha256=k9mDKscV2DioEb_00r1occVj7Y6lwYGKfPq4Gl7MsOE,69632
11
+ monitor/DLL/GpuMonitorLib.dll,sha256=t1Y4h7Hoxz2s9Ziiofrp7xgfpuQiMafxnRVW0TcmmuY,68608
12
12
  monitor/DLL/KernelBase.dll,sha256=MSJ2WSh-2Lk6yFVLX_a8G2EnNuaOtJGpfg-Vw9HY_go,3860744
13
13
  monitor/DLL/LibreHardwareMonitorLib.dll,sha256=XSzcprSY4xSH3i5DhngO6mYtVmC3GJvu9-0X9UKwPbU,790528
14
14
  monitor/DLL/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -25,8 +25,8 @@ monitor/DLL/sechost.dll,sha256=1mXCrgNDRBiZ2XZk7eTpDm4oPG-x9BW4uYUVkrfvBkk,69986
25
25
  monitor/DLL/ucrtbased.dll,sha256=vtmKFPEHyr2OXkrUOu3Qs1dlbKG1dxZ8ItKCkTTU5S4,2238056
26
26
  monitor/DLL/vcruntime140.dll,sha256=AsaqDm5iRBGp8ZsDYKeGWrFZCOJgJFEOXDipwINiw1o,119888
27
27
  monitor/DLL/vcruntime140_1.dll,sha256=fdmqAuJxxoym1fGNZR0joV1yWXFa9DMmV4993ifzdjc,49640
28
- pmonitor-1.5.3.dist-info/METADATA,sha256=G56Yi9S-u98Oog0LP9F6z9xwEVqo1ANH_Vnxwx_n2j8,427
29
- pmonitor-1.5.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
30
- pmonitor-1.5.3.dist-info/entry_points.txt,sha256=RiT4cQ3f8vsU3HSGbQrMROCHMi7eOFzdh-k0g7TzoFE,54
31
- pmonitor-1.5.3.dist-info/top_level.txt,sha256=tGkQDkVeyKgP5Rr7acpp0df83NBAnI8up0sGwRxuuQ4,8
32
- pmonitor-1.5.3.dist-info/RECORD,,
28
+ pmonitor-1.5.5.dist-info/METADATA,sha256=n_TzAaS9o3NXsebViiGZE6UgmFOAOcjMjrb3ZjWhot0,427
29
+ pmonitor-1.5.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
30
+ pmonitor-1.5.5.dist-info/entry_points.txt,sha256=RiT4cQ3f8vsU3HSGbQrMROCHMi7eOFzdh-k0g7TzoFE,54
31
+ pmonitor-1.5.5.dist-info/top_level.txt,sha256=tGkQDkVeyKgP5Rr7acpp0df83NBAnI8up0sGwRxuuQ4,8
32
+ pmonitor-1.5.5.dist-info/RECORD,,