Commit b1243369 authored by David Wilson's avatar David Wilson

fakessh: add to preamble_size.py

parent 04ea5306
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment