We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d21124f commit 11e153aCopy full SHA for 11e153a
utils/SystemUtil.py
@@ -141,14 +141,14 @@ def restart_process(path):
141
:return:
142
"""
143
if psutil.virtual_memory().percent >= 80:
144
+ print("当前进程id:", os.getpid())
145
+ print("前进程组id:", os.getpid())
146
+ print("父进程id:", os.getppid())
147
print('内存使用:', psutil.Process(os.getpid()).memory_info().rss)
148
print("当前内存占用率:", psutil.virtual_memory().percent)
149
# if gc.isenabled():
150
# # 释放内存
151
# gc.collect()
- print("当前进程id:", os.getpid())
- print("前进程组id:", os.getpid())
- print("父进程id:", os.getppid())
152
153
py = "python3" if (os.system("python3 -V") == 0) else "python"
154
sysstr = platform.system()
0 commit comments