Merge "Omaha #3549 log time to receive data in pypies separate from deserialize time" into omaha_14.4.1

Former-commit-id: f7ef760f5a [formerly c24d5d08e6663e690b0966f71826869127c1a9cf]
Former-commit-id: f13dbb07f3
This commit is contained in:
Richard Peter 2014-11-07 09:21:02 -06:00 committed by Gerrit Code Review
commit 0bf4e96f04
2 changed files with 12 additions and 6 deletions

View file

@ -32,6 +32,7 @@
# 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)

View file

@ -28,6 +28,7 @@
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 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',