def heap():
yield
while True:
cpuload = (10000 - asyncio.sched.idlecount) / 100
cpuidle = asyncio.sched.idlecount / 10
asyncio.sched.idlecount = 0
log.info ("Memory free: %d cpu idlecount/sec: %d %% time:%s" , gc.mem_free() , cpuidle, klok.toString() )
yield
评论列表
文章目录