From 0c1d0004db275c86ac1be5d9a3b2f88035aa3a6e Mon Sep 17 00:00:00 2001 From: mohansriharsha Date: Thu, 23 May 2019 11:19:56 +0530 Subject: [PATCH] add deserialize timings to total kwikapi timings --- .travis.yml | 4 ++-- kwikapi/api.py | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 43132fd..baf4003 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,8 @@ deploy: - LICENSE - kwikapi/api.py - kwikapi/__init__.py - name: kwikapi-0.5.8 - tag_name: 0.5.8 + name: kwikapi-0.5.9 + tag_name: 0.5.9 on: repo: deep-compute/kwikapi - provider: pypi diff --git a/kwikapi/api.py b/kwikapi/api.py index 2cf2d6a..81a78d7 100644 --- a/kwikapi/api.py +++ b/kwikapi/api.py @@ -554,7 +554,7 @@ def handle_request(self, request): result = dict(success=True, result=result) if protocol.should_wrap() else result n, t = response.write(result, protocol) - response.headers[TIMING_HEADER] = str(tcompute + t.value) + response.headers[TIMING_HEADER] = str(tcompute + t.value + rinfo.time_deserialize) request.log.info('kwikapi.handle_request', function=rinfo.function, namespace=rinfo.namespace, diff --git a/setup.py b/setup.py index b6e3778..8b9d304 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '0.5.8' +version = '0.5.9' setup( name="kwikapi", version=version,