fakessh: add to preamble_size.py

This commit is contained in:
David Wilson 2017-09-21 17:08:57 +05:30
parent 04ea5306e9
commit b12433695c
1 changed files with 2 additions and 0 deletions

View File

@ -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)