Merge remote-tracking branch 'gh/moyamo/develop' into develop
This commit is contained in:
commit
417465789f
|
@ -6,6 +6,8 @@ import os
|
||||||
import logging
|
import logging
|
||||||
import google.protobuf
|
import google.protobuf
|
||||||
|
|
||||||
|
import resource
|
||||||
|
|
||||||
def WRAP(MESSAGE, TYPE):
|
def WRAP(MESSAGE, TYPE):
|
||||||
wrap = protocol_pb2.WrapperMessage()
|
wrap = protocol_pb2.WrapperMessage()
|
||||||
wrap.type = TYPE
|
wrap.type = TYPE
|
||||||
|
@ -621,7 +623,7 @@ class SpectrumBackend:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def handleMemoryUsage(self):
|
def handleMemoryUsage(self):
|
||||||
return (0,0)
|
return (resource.getrusage(resource.RUSAGE_SELF).ru_maxrss, 0)
|
||||||
|
|
||||||
def handleExitRequest(self):
|
def handleExitRequest(self):
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in a new issue