More refined time tracing. It seems the AMP connection is really the bottleneck.

This commit is contained in:
Griatch 2015-09-17 22:39:48 +02:00
parent d02b781be1
commit 018250e4e5
4 changed files with 16 additions and 4 deletions

View file

@ -602,7 +602,7 @@ class ServerSessionHandler(SessionHandler):
"""
from evennia.server.profiling.timetrace import timetrace
text = timetrace(text, "ServerSession.data_in")
text = timetrace(text, "ServerSessionHandler.data_in")
session = self.sessions.get(sessid, None)
if session:
text = text and to_unicode(strip_control_sequences(text), encoding=session.encoding)