diff --git a/pythonPackages/pypies/pypies/handlers.py b/pythonPackages/pypies/pypies/handlers.py index c7df9857d4..7744774079 100644 --- a/pythonPackages/pypies/pypies/handlers.py +++ b/pythonPackages/pypies/pypies/handlers.py @@ -28,10 +28,11 @@ # # Date Ticket# Engineer Description # ------------ ---------- ----------- -------------------------- -# 08/17/10 njensen Initial Creation. -# 01/11/13 bkowal Pypies will now read the hdf5 root from configuration -# 01/17/13 1490 bkowal Relocated the configuration of pypies -# 06/12/13 2102 njensen Raise uncaught exceptions to force http code 500 +# 08/17/10 njensen Initial Creation. +# 01/11/13 bkowal Pypies will now read the hdf5 root from configuration +# 01/17/13 1490 bkowal Relocated the configuration of pypies +# 06/12/13 2102 njensen Raise uncaught exceptions to force http code 500 +# 11/06/14 3549 njensen Log time to receive data # # @@ -69,7 +70,10 @@ def pypies_response(request): try: startTime = time.time() try: - obj = dynamicserialize.deserialize(request.data) + data=request.data + timeMap['receiveData']=time.time()-startTime + startTime = time.time() + obj = dynamicserialize.deserialize(data) except: msg = 'Error deserializing request: ' + IDataStore._exc() logger.error(msg) diff --git a/pythonPackages/pypies/pypies/logging/StatsThread.py b/pythonPackages/pypies/pypies/logging/StatsThread.py index d1b98f1a6a..21c3c2aec5 100644 --- a/pythonPackages/pypies/pypies/logging/StatsThread.py +++ b/pythonPackages/pypies/pypies/logging/StatsThread.py @@ -27,7 +27,8 @@ # # Date Ticket# Engineer Description # ------------ ---------- ----------- -------------------------- -# 05/12/11 njensen Initial Creation. +# 05/12/11 njensen Initial Creation. +# 11/06/14 3549 njensen Log receiveData # # # @@ -36,6 +37,7 @@ import threading, time, logging STORE_DIR = '/awips2/edex/data/hdf5/' # TODO this should be a config file STORE_DIR_LEN = len(STORE_DIR) SECTION_KEYS=['total', + ' receiveData', ' deserialize', ' getLock', ' approxLockSleepTime',