Check time to apply resource helper functions

For many operations, the time it takes to apply resource helper
functions constitutes a significant percentage of the time spent
completing the total transaction.  A list port transaction may have to
process thirteen resource helpers, for example.  Introducing some timing
logging will allow us to get clarity on whether slowdowns that happen
from version to version are a result of these accumulated resource
extenders.

Change-Id: I4c8867bb21d01c7a70c1b015814ce5da62e23a50
This commit is contained in:
Nate Johnston 2020-05-26 12:37:56 -04:00 committed by Nate Johnston
parent b91f9fc0cf
commit 29ba0b7d21
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ def get_funcs(resource):
return _resource_extend_functions.get(resource, [])
@helpers.timecost
def apply_funcs(resource_type, response, db_object):
"""Appy registered functions for the said resource type.