fakessh: add to preamble_size.py
This commit is contained in:
parent
04ea5306e9
commit
b12433695c
|
@ -6,6 +6,7 @@ contexts.
|
||||||
import inspect
|
import inspect
|
||||||
import zlib
|
import zlib
|
||||||
|
|
||||||
|
import mitogen.fakessh
|
||||||
import mitogen.master
|
import mitogen.master
|
||||||
import mitogen.ssh
|
import mitogen.ssh
|
||||||
import mitogen.sudo
|
import mitogen.sudo
|
||||||
|
@ -27,6 +28,7 @@ for mod in (
|
||||||
mitogen.master,
|
mitogen.master,
|
||||||
mitogen.ssh,
|
mitogen.ssh,
|
||||||
mitogen.sudo,
|
mitogen.sudo,
|
||||||
|
mitogen.fakessh,
|
||||||
):
|
):
|
||||||
sz = len(zlib.compress(mitogen.master.minimize_source(inspect.getsource(mod))))
|
sz = len(zlib.compress(mitogen.master.minimize_source(inspect.getsource(mod))))
|
||||||
print '%s size: %s (%.2fKiB)' % (mod.__name__, sz, sz / 1024.0)
|
print '%s size: %s (%.2fKiB)' % (mod.__name__, sz, sz / 1024.0)
|
||||||
|
|
Loading…
Reference in New Issue