From 92b1648729bf63f3631e0756a92dd43bb1d9a782 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 10 Feb 2019 14:13:22 +0000 Subject: [PATCH] Add a few more important modules to preamble_size.py. --- preamble_size.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/preamble_size.py b/preamble_size.py index bf3b5950..ead5af85 100644 --- a/preamble_size.py +++ b/preamble_size.py @@ -16,6 +16,9 @@ import mitogen.service import mitogen.ssh import mitogen.sudo +import ansible_mitogen.runner +import ansible_mitogen.target + router = mitogen.master.Router() context = mitogen.parent.Context(router, 0) stream = mitogen.ssh.Stream(router, 0, max_message_size=0, hostname='foo') @@ -31,7 +34,7 @@ if '--dump' in sys.argv: print( - ' ' + ' ' ' ' ' Original ' ' ' @@ -42,6 +45,9 @@ print( for mod in ( mitogen.parent, + mitogen.fork, + ansible_mitogen.target, + ansible_mitogen.runner, mitogen.ssh, mitogen.sudo, mitogen.select, @@ -56,7 +62,7 @@ for mod in ( compressed = zlib.compress(minimized, 9) compressed_size = len(compressed) print( - '%-15s' + '%-25s' ' ' '%5i %4.1fKiB' ' '