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