Send residential memory usage to spectrum server
This commit is contained in:
parent
80e7fad07f
commit
502077dc51
|
@ -6,6 +6,8 @@ import os
|
|||
import logging
|
||||
import google.protobuf
|
||||
|
||||
import resource
|
||||
|
||||
def WRAP(MESSAGE, TYPE):
|
||||
wrap = protocol_pb2.WrapperMessage()
|
||||
wrap.type = TYPE
|
||||
|
@ -620,7 +622,7 @@ class SpectrumBackend:
|
|||
pass
|
||||
|
||||
def handleMemoryUsage(self):
|
||||
return (0,0)
|
||||
return (resource.getrusage(resource.RUSAGE_SELF).ru_maxrss, 0)
|
||||
|
||||
def handleExitRequest(self):
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in a new issue