pmonitor 1.4.3__tar.gz → 1.4.5__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.4.3 → pmonitor-1.4.5}/PKG-INFO +1 -1
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/monitor_pids.py +9 -4
- {pmonitor-1.4.3 → pmonitor-1.4.5}/pmonitor.egg-info/PKG-INFO +1 -1
- {pmonitor-1.4.3 → pmonitor-1.4.5}/pmonitor.egg-info/SOURCES.txt +1 -0
- pmonitor-1.4.5/pmonitor.egg-info/requires.txt +2 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/setup.py +5 -2
- {pmonitor-1.4.3 → pmonitor-1.4.5}/README.md +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/GpuMonitorLib.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/KernelBase.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/__init__.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/advapi32.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/bcrypt.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/kernel.appcore.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/kernel32.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/msvcirt.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/msvcp140.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/ntdll.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/pdh.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/rpcrt4.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/sechost.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/ucrtbased.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/vcruntime140.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/DLL/vcruntime140_1.dll +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/WinPidUtil.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/__init__.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/exec/GpuMonitor +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/exec/__init__.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/get_process_name.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/mac_gpu.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/monitor_mac.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/monitor_win.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/run_monitor.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/monitor/sys_info.py +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/pmonitor.egg-info/dependency_links.txt +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/pmonitor.egg-info/entry_points.txt +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/pmonitor.egg-info/top_level.txt +0 -0
- {pmonitor-1.4.3 → pmonitor-1.4.5}/setup.cfg +0 -0
|
@@ -7,6 +7,7 @@ import asyncio
|
|
|
7
7
|
import platform
|
|
8
8
|
import ctypes
|
|
9
9
|
import os
|
|
10
|
+
from PyLibreHardwareMonitor.computer import Computer
|
|
10
11
|
|
|
11
12
|
if platform.system() != 'Windows':
|
|
12
13
|
from monitor.mac_gpu import get_gpu_memory
|
|
@@ -103,7 +104,6 @@ class PidsPerf:
|
|
|
103
104
|
def get_win_perf(self):
|
|
104
105
|
from monitor.WinPidUtil import PidWinPerformance, FILETIME
|
|
105
106
|
from ctypes import CDLL, c_int, c_char_p, byref
|
|
106
|
-
from PyLibreHardwareMonitor.computer import Computer
|
|
107
107
|
pidWinPerf = PidWinPerformance()
|
|
108
108
|
system_time_pre = pidWinPerf.filetime_to_100nano_seconds(FILETIME())
|
|
109
109
|
p_pid = self.processUtil.find_main_process_pid(self.process_name)
|
|
@@ -250,9 +250,14 @@ class PidsPerf:
|
|
|
250
250
|
'gpu_System': round(minor_gpu_system_sum, 2),
|
|
251
251
|
'gpu_Committed': round(minor_gpu_committed_sum, 2),
|
|
252
252
|
'gpu_Usage': round(minor_gpu_percent_sum, 2)}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
if 'GPU Memory Used' in small_data:
|
|
254
|
+
gpu_data = {'gpu memory usage': round(small_data['GPU Memory Used'], 2),
|
|
255
|
+
'gpu memory total': round(small_data['GPU Memory Total'], 2),
|
|
256
|
+
'gpu memory free': round(small_data['GPU Memory Free'], 2)}
|
|
257
|
+
else:
|
|
258
|
+
gpu_data = {'gpu memory usage': round(small_data['D3D Shared Memory Used'], 2),
|
|
259
|
+
'gpu memory total': round(small_data['D3D Shared Memory Total'], 2),
|
|
260
|
+
'gpu memory free': round(small_data['D3D Shared Memory Free'], 2)}
|
|
256
261
|
try:
|
|
257
262
|
data = {'main': main_data, 'other': other_data, 'disk': disk_data,
|
|
258
263
|
'gpu': gpu_data,
|
|
@@ -5,12 +5,15 @@ with open('README.md', 'r') as f:
|
|
|
5
5
|
long_description = f.read()
|
|
6
6
|
|
|
7
7
|
setup(name='pmonitor',
|
|
8
|
-
version='1.4.
|
|
8
|
+
version='1.4.5',
|
|
9
9
|
description='pc monitor',
|
|
10
10
|
long_description=long_description,
|
|
11
11
|
author='cfr',
|
|
12
12
|
author_email='1354592998@qq.com',
|
|
13
|
-
install_requires=[
|
|
13
|
+
install_requires=[
|
|
14
|
+
'PyLibreHardwareMonitor>=1.2.2',
|
|
15
|
+
'psutil>=5.9.8'
|
|
16
|
+
],
|
|
14
17
|
license='MIT',
|
|
15
18
|
packages=find_packages(),
|
|
16
19
|
package_data={
|
|
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
|