server/cli.py: remove timing instrumentation

I don't anticipate ever caring how long it takes to import code on the
server side. Only the client's performance is interesting to me.
This commit is contained in:
Brian Warner 2016-06-20 16:22:15 -07:00
parent d8c2c1249e
commit 60b40c2de2

View File

@ -53,7 +53,6 @@ def start(cfg, signal_error, no_daemon, blur_usage, advertise_version, transit,
"""
Start a relay server
"""
with cfg.timing.add("import", which="cmd_server_start"):
from wormhole.server.cmd_server import start_server
cfg.no_daemon = no_daemon
cfg.blur_usage = blur_usage
@ -98,7 +97,6 @@ def restart(cfg, signal_error, no_daemon, blur_usage, advertise_version, transit
"""
Re-start a relay server
"""
with cfg.timing.add("import", which="cmd_server_restart"):
from wormhole.server.cmd_server import restart_server
cfg.no_daemon = no_daemon
cfg.blur_usage = blur_usage
@ -116,7 +114,6 @@ def stop(cfg):
"""
Stop a relay server
"""
with cfg.timing.add("import", which="cmd_server_stop"):
from wormhole.server.cmd_server import stop_server
stop_server(cfg)
@ -127,7 +124,6 @@ def tail_usage(cfg):
"""
Follow the latest usage
"""
with cfg.timing.add("import", which="cmd_tail_usage"):
from wormhole.server.cmd_usage import tail_usage
tail_usage(cfg)
@ -141,7 +137,6 @@ def count_channels(cfg, json):
"""
Count active channels
"""
with cfg.timing.add("import", which="cmd_count_channels"):
from wormhole.server.cmd_usage import count_channels
cfg.json = json
count_channels(cfg)
@ -156,7 +151,6 @@ def count_events(cfg, json):
"""
Count events
"""
with cfg.timing.add("import", which="cmd_count_events"):
from wormhole.server.cmd_usage import count_events
cfg.json = json
count_events(cfg)