From 618706681a96254c164ae9ebc15f357a671ef656 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 3 Mar 2016 15:14:15 -0800 Subject: [PATCH] record time spent importing code --- src/wormhole/scripts/runner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wormhole/scripts/runner.py b/src/wormhole/scripts/runner.py index 5cddf33..32e9c88 100644 --- a/src/wormhole/scripts/runner.py +++ b/src/wormhole/scripts/runner.py @@ -31,7 +31,9 @@ def dispatch(args): return cmd_send_blocking.send_blocking(args) if args.func == "receive/receive": if args.twisted: + _start = args.timing.add_event("import c_r_t") from . import cmd_receive_twisted + args.timing.finish_event(_start) return cmd_receive_twisted.receive_twisted_sync(args) from . import cmd_receive_blocking return cmd_receive_blocking.receive_blocking(args)