整理内存,释放内存,避免内存狂涨...
By
admin
at 2017-12-10 • 0人收藏 • 2329人看过
emptyMem = function(){ import process; import raw; EmptyWorkingSet := ::Psapi.api("EmptyWorkingSet","bool(pointer hanld)") empty=function(){ var hanld = process.OpenProcess(0x1f0fff,false,process.getId()) EmptyWorkingSet(hanld) raw.closehandle(hanld) } empty(); }
以上是实现代码, 新版aardio中可以直接使用process库
process.emptyWorkingSet()
配合定时操作的事件,定时清理.切记,只对当前程序有效!!
登录后方可回帖