Omaha #3549 log time to receive data in pypies separate from deserialize
time Change-Id: I10e1fd81305b7653849ec3801fa1136368c19943 Former-commit-id: 61ee939fb5611c0043cd3440716a03763785a7ab
This commit is contained in:
parent
2c61cae7ab
commit
a3b292c116
2 changed files with 12 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue