Time tracing setup for tracing the flow of data through AMP.
This commit is contained in:
parent
a4e081f11c
commit
d02b781be1
7 changed files with 67 additions and 0 deletions
|
|
@ -425,6 +425,9 @@ class DefaultObject(ObjectDB):
|
|||
All extra kwargs will be passed on to the protocol.
|
||||
|
||||
"""
|
||||
from evennia.server.profiling.timetrace import timetrace
|
||||
text = timetrace(text, "Object.msg")
|
||||
|
||||
text = to_str(text, force_string=True) if text != None else ""
|
||||
if from_obj:
|
||||
# call hook
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue