mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 05:53:12 +00:00
1fc6be28f4
This is for ticket #1068.
19 lines
381 B
Python
19 lines
381 B
Python
#! /usr/bin/env python
|
|
|
|
from foolscap import Tub
|
|
from foolscap.eventual import eventually
|
|
import sys
|
|
from twisted.internet import reactor
|
|
|
|
def go():
|
|
t = Tub()
|
|
d = t.getReference(sys.argv[1])
|
|
d.addCallback(lambda rref: rref.callRemote("get_memory_usage"))
|
|
def _got(res):
|
|
print res
|
|
reactor.stop()
|
|
d.addCallback(_got)
|
|
|
|
eventually(go)
|
|
reactor.run()
|